From account to application
Register your application
Choose the application type and exact callback URL in Account. Keep a web client's secret on the server only.
Request access
Use Authorization Code with PKCE S256, state and only the scopes you need. Add a nonce for OpenID Connect.
Sign the user in
Verify the response, exchange the code for tokens and validate the ID token before creating your application's session.
