Gets a token based on grant type.

See the OAuth2 spec https://oauth.net/2/

Language