spotify_ex v0.0.3 Spotify.Cookies

Convinience 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

Sets the refresh token

Functions

get_access_cookie(conn)

Gets the access token

get_refresh_cookie(conn)

Gets the access token

set_access_cookie(conn, string)

Sets the access token

set_cookies(conn, map)

Sets the refresh token and access token

##Example:

iex> Spotify.Cookies.set_cookies(conn, %{refresh_token: rt, access_token: at})
set_refresh_cookie(conn, string)

Sets the refresh token