import { API_URL } from '../../config'
import { Token, TokenResponse } from './types'

const composeTokenURL = () => (
    API_URL + '/token?'
)

const processToken = (data: TokenResponse): Token => {
    return data.access_token
}

export { composeTokenURL, processToken }
