authable v0.5.1 Authable.Authentications.Session
Bearer authencation helper module
Summary
Functions
Authenticates resource-owner using session_token token value
Functions
Authenticates resource-owner using session_token token value.
It matches resource owner with given session_token. If any resource owner matched given credentials, it returns resource owner struct, otherwise nil.
Examples
# Suppose we have a session_token at 'token store(Authable.Token)'
# with token value "st123456789"
# If we pass the token value to the function,
# it will return resource-owner.
Authable.Authentications.Session.authenticate("st123456789")