spotify_ex v2.2.1 Spotify.Cookies View Source
Convenience setters and getters for auth cookies
Link to this section Summary
Functions
Gets the access token
Gets the access token
Sets the access token
Sets the refresh token and access token and returns the conn
Sets the refresh token
Link to this section Functions
Link to this function
get_access_token(conn) View Source
Gets the access token
Link to this function
get_refresh_token(conn) View Source
Gets the access token
Link to this function
set_access_cookie(conn, string) View Source
Sets the access token
Link to this function
set_cookies(conn, credentials) View Source
Sets the refresh token and access token and returns the conn.
Example:
credentials = %Spotify.Credentials{refresh_token: rt, access_token: at}
Spotify.Cookies.set_cookies(conn, credentials)
Link to this function
set_refresh_cookie(conn, string) View Source
Sets the refresh token