RailsCasts Pro episodes are now free!

Learn more or hide this

amnesia7's Profile

GitHub User: amnesia7

Comments by

Avatar

...but would I use the access_token field to identify the user calling the API?

Avatar

Very useful screencast Ryan.

I'm using a generate_access_token in my User model to create an access_token for each user so that my app can do "Remember Me" using a cookie (so they don't need to login again) as per screencast #274.

Would I use this same access_token field for the user to be able to call my API?
Can you see any issue in doing that?
Or should they be different?

Avatar

Another great screencast.

I've implemented this auth_token into an app that uses simple omniauth (#241) for authentication. Is this auth_token the same token I could use for a user to call my app's API or do I need to generate a different token for that purpose?