setRedirectURL('https://fitness.matt-cloud.com/pgapi/auth/oidc/callback'); // If you want PKCE (recommended for public clients) $oidc->setCodeChallengeMethod('S256'); // Start the auth flow $oidc->authenticate();