与Auth

时间:2016-07-24 05:17:01

标签: javascript angularjs api laravel-5 restful-authentication

我有一个带有laravel 5.1的Restfull应用程序,我在身份验证用户中使用Auth facade(会话)(例如Auth :: attempt,..),android和ios获得身份验证但是角度无法获取api请求的会话neede在登录请求后进行身份验证 我的错在哪里?

1 个答案:

答案 0 :(得分:-1)

您可能需要关注https://scotch.io/tutorials/token-based-authentication-for-angularjs-and-laravel-apps

并使用此https://github.com/sophatvathana/ngrolerr将您的令牌存储在Cookie,sessionStroage或localStroage中。