Devise token_authenticatable deprecated, what is the alternative?

后端 未结 5 2012
逝去的感伤
逝去的感伤 2020-12-12 14:52

I have been using token_authenticatable before to secure my API, however, I have found that it was deprecated? What should I use instead and why did they deprec

5条回答
  •  余生分开走
    2020-12-12 15:12

    From their blog :

    "we cannot digest the authentication token provided by TokenAuthenticatable, as they are often part of APIs where the token is used many times. Since the usage of the authenticatable token can vary considerably in between applications, each requiring different safety guarantees, we have decided to remove TokenAuthenticatable from Devise, allowing users to pick the best option."

    It's now up to the developers to choose the best fit depending on their usage of the authentication token.

    Checkout this gist.

提交回复
热议问题