Create access token (omniauth)
Signs in with an identity the provider vouches for. credentials.token must be the provider's own token (Google ID token, Facebook user access token, Apple identity token); the API checks it with the provider, checks it was issued to Purple Grain, and signs in only the account whose email the provider returned, which must equal info.email and uid. Any other claim, a missing token, or a provider the API cannot verify is a 403. Returns a Doorkeeper access token in JSON (same shape as POST /oauth/token, plus user_id). Use Authorization: Bearer <access_token> on /api/v1/*. Prefer POST /oauth/token when you have a registered OAuth client and want strict RFC 6749 behavior.
Request
- Base URL: https://api.purplegrain.com/api/v1
- URL: https://api.purplegrain.com/api/v1/users/access-tokens
- Auth: none declared
Request body
Response
Success — Doorkeeper token response including user_id.
Example response
{
"token_type": "Bearer"
}Changes
No recorded changes to this operation across all 3 revisions of this API.