You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uid is what used to find your user, and in your user.tokens example: client: "AOYZdDmwI7WQr8I6T4PpPw" token_hash: "$2a$10$C/5f3JV7.9DZG8w.ggdCPelB6kzitWuGK4rfozHv15Hhf/x9DaCcO"
you can manually check the values and learn how they work:
# check if @token matches token_hashDeviseTokenAuth::Concerns::User.tokens_match?(token_hash,@token)# under the hood this is what's checkedBCrypt::Password.new(token_hash) == @token# check if token is validUser.find_by_uid(uid).valid_token?(@token,@client_id)# it grabs user.tokens[@client_id] and check if it's expired and if the @token matches token_hash within
I am new to use this and working on a mobile client api, two questions:
But seems from the source code i should provide for uid, access_token, clientlink
which is
client
and which is access-token?Thank you!
The text was updated successfully, but these errors were encountered: