Auth: hosted sign-in for your app
Hosted OAuth 2.1 with PKCE. Your users sign in with Google, GitHub or Discord, or with email and password.
- Standard authorization-code flow, no SDK to install
- Access and refresh tokens issued as RS256 JWTs
- The client secret stays on your server
curl -s -X POST https://auth.onlyutils.com/token \
--data-urlencode "grant_type=authorization_code" \
--data-urlencode "code=<authorization-code>" \
--data-urlencode "code_verifier=<your-code-verifier>" \
--data-urlencode "redirect_uri=https://app.example.com/callback" \
--data-urlencode "client_id=<your-client-id>" \
--data-urlencode "client_secret=<your-client-secret>"
{
"access_token": "<access-token>",
"token_type": "Bearer",
"expires_in": 900,
"refresh_token": "<refresh-token>",
"scope": "openid profile"
}
Auth specs
- Protocol
- OAuth 2.1 authorization code with PKCE (S256).
- Sign-in methods
- Google, GitHub, Discord, email and password.
- Tokens
- RS256-signed JWT access tokens, refresh tokens.
- Passwords
- Hashed with argon2id.
- Host
- auth.onlyutils.com