Integrations use the authorization code grant with PKCE S256. There is no implicit grant.
Clients
Register a client with POST /v1/oauth/clients. The client id starts with yoc_. The client secret starts with yocs_ and is shown once. Sandbox and production clients are separate.
Authorization
The browser page is https://auth.yenio.mx/oauth/authorize. Locally it is http://127.0.0.1:3001/oauth/authorize. The code challenge method is S256.
Tokens
The token URL is POST /oauth/token on auth-svc (https://auth-svc.yenio.mx/oauth/token). The body is form-encoded. grant_type is authorization_code or refresh_token.
The access token is a Bearer JWT for the public API https://api.yenio.mx. Send Authorization: Bearer <jwt>. Scopes are the existing permission strings.