YipyipExAuth v0.1.0-alpha.2 YipyipExAuth.Utils View Source
Utility functions, mainly getters and setters for module internals.
Link to this section Summary
Functions
Get access token payload, if present.
Get auth error, if present.
Get refresh token payload, if present.
Get current session, if present.
Get token signature transport mechanism, if present.
Get tokens, if present.
Set token signature transport mechanism. Must be one of
"bearer"
, "cookie"
, :bearer
or :cookie
.
Link to this section Functions
Link to this function
get_access_token_payload(conn)
View Sourceget_access_token_payload(Plug.Conn.t()) :: map() | nil
Get access token payload, if present.
Link to this function
get_auth_error(conn)
View Sourceget_auth_error(Plug.Conn.t()) :: binary() | nil
Get auth error, if present.
Link to this function
get_refresh_token_payload(conn)
View Sourceget_refresh_token_payload(Plug.Conn.t()) :: map() | nil
Get refresh token payload, if present.
Link to this function
get_session(conn)
View Sourceget_session(Plug.Conn.t()) :: YipyipExAuth.Models.Session.t() | nil
Get current session, if present.
Link to this function
get_token_signature_transport(conn)
View Sourceget_token_signature_transport(Plug.Conn.t()) :: atom() | nil
Get token signature transport mechanism, if present.
Link to this function
get_tokens(conn)
View Sourceget_tokens(Plug.Conn.t()) :: YipyipExAuth.Models.Tokens.t() | nil
Get tokens, if present.
Link to this function
set_token_signature_transport(conn, token_signature_transport)
View Sourceset_token_signature_transport(Plug.Conn.t(), binary() | :bearer | :cookie) :: Plug.Conn.t()
Set token signature transport mechanism. Must be one of
"bearer"
, "cookie"
, :bearer
or :cookie
.