Protect user privacy
#Request only the scopes a feature needs, at the moment it needs them. Explain on your site what you store and why, and link a privacy policy in your application settings; it appears on the authorization screen. Use sub, not email, as the user identifier. Delete tokens and derived data when users disconnect. If you store personal or sensitive files, encrypt them before upload with keys you manage. OzVault shows developers counts only; it never reveals which users connected.
Production checklist
#Keep the client secret on the server, in a secret manager, and rotate it on any suspicion. Generate fresh state and code_verifier per request; verify state and iss on every callback. Register HTTPS redirect URLs only; remove localhost entries before launch. Store access and refresh tokens server-side, encrypted at rest; never in localStorage, URLs or logs. Refresh one connection at a time and always save the newest refresh token. Handle 401 and invalid_grant as disconnection. Validate id_token signature, issuer, audience, expiry and nonce before trusting a sign-in. Verify X-Content-SHA256 after downloads. Serve downloaded user files with Content-Disposition: attachment, never inline from your domain.
What OzVault enforces for you
#Exact redirect matching, mandatory PKCE S256, two-minute single-use codes, hashed secrets and tokens, refresh rotation with replay revocation, per-app isolated storage, server-side scope and quota checks, rate limiting, user-controlled revocation and audit history visible in your application's portal.
Clear documentation is part of the product.