spotify_ex v2.0.2 Spotify.Cookies

Convenience setters and getters for auth cookies

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

Functions

get_access_token(conn)

Gets the access token

get_refresh_token(conn)

Gets the access token

set_access_cookie(conn, string)

Sets the access token

set_cookies(conn, credentials)

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)
set_refresh_cookie(conn, string)

Sets the refresh token