Authorization code + PKCE against the cloud issuer.
Open Applications, sign in with a passkey, click Create application. Save the client secret once.
export OIDC_ISSUER=https://0trust.cloud export OIDC_CLIENT_ID=... export OIDC_CLIENT_SECRET=... export OIDC_REDIRECT_URI=http://localhost:3000/callback export OIDC_SCOPES=\"openid profile email offline_access\"
Go · JavaScript · Python
# Go go get github.com/0TrustCloud/otrust-go # JavaScript npm install @0trust/otrust-js # Python pip install otrust
Build authorize URL with PKCE S256 → user signs in with passkey on 0trust.cloud → exchange code for tokens → validate id_token with JWKS.
# Validate discovery curl -sS https://0trust.cloud/.well-known/openid-configuration | head