Hacker News new | ask | show | jobs
by acmecorps 4236 days ago
May I know, how do you guys handle authentications and "cookies"/tokens?
2 comments

You might be interested in https://github.com/lynndylanhurley/ng-token-auth and https://github.com/lynndylanhurley/devise_token_auth, which together collect (what seem to be) best practices for both frontend and backend for token authentication. We're planning on using it for our startup.
Accept authentication using HTTP-BasicAuth and create a token then use the token until it expires.