spotify_ex v1.0.1 Spotify.Cookies

Convinience setters and getters for auth cookies

Summary

Functions

Gets the access token

Returns a map of token cookies from a parsed response body

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_cookie(conn)

Gets the access token

get_cookies_from_response(map)

Returns a map of token cookies from a parsed response body

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 and returns the conn.

##Example:

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

Sets the refresh token