设计:您需要先登录或注册,然后继续

时间:2019-05-12 20:07:47

标签: ruby-on-rails devise jwt

我正在尝试使用devise-jwt制作身份验证系统,但是在实际登录后,我似乎无法保持登录状态,如以下屏幕截图所示: enter image description here

然后,当我尝试访问其控制器具有“ before_action:authenticate_user!”的URL时,它一直给我以下错误:

enter image description here

这是我逐步进行的教程,以进行身份​​验证:https://medium.com/@nandhae/2019-how-i-set-up-authentication-with-jwt-in-just-a-few-lines-of-code-with-rails-5-api-devise-9db7d3cee2c0

https://github.com/nandhae/Rails5-api-authentication-with-JWT-using-devise

0 个答案:

没有答案