We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://developers.facebook.com/docs/facebook-login/guides/advanced/oidc-token/
https://developers.facebook.com/docs/facebook-login/guides/advanced/manual-flow/
import { CodeChallengeMethod, OAuth2Client, OAuth2Tokens } from "arctic"; const authorizationEndpoint = "https://www.facebook.com/v21.0/dialog/oauth"; const tokenEndpoint = "https://graph.facebook.com/v21.0/oauth/access_token"; export class Facebook { private client: OAuth2Client; constructor(clientId: string, clientSecret: string, redirectURI: string) { this.client = new OAuth2Client(clientId, clientSecret, redirectURI); } public createAuthorizationURL(state: string, codeVerifier: string, scopes: string[]): URL { const url = this.client.createAuthorizationURLWithPKCE( authorizationEndpoint, state, CodeChallengeMethod.S256, codeVerifier, scopes ); return url; } public async validateAuthorizationCode( code: string, codeVerifier: string ): Promise<OAuth2Tokens> { const tokens = await this.client.validateAuthorizationCode(tokenEndpoint, code, codeVerifier); return tokens; } }
Scopes e.g. ["openid", "public_profile"]
["openid", "public_profile"]
Token revocation I can't find, they recommend revoking the entire app's permissions which is a DELETE request https://developers.facebook.com/docs/facebook-login/guides/permissions/request-revoke#revokelogin
DELETE
The text was updated successfully, but these errors were encountered:
I'm guessing this is a feature request to add PKCE support to Facebook? I was putting it off since Facebook's OIDC docs seem outdated
Sorry, something went wrong.
No branches or pull requests
https://developers.facebook.com/docs/facebook-login/guides/advanced/oidc-token/
https://developers.facebook.com/docs/facebook-login/guides/advanced/manual-flow/
Scopes e.g.
["openid", "public_profile"]
Token revocation I can't find, they recommend revoking the entire app's permissions which is a
DELETE
requesthttps://developers.facebook.com/docs/facebook-login/guides/permissions/request-revoke#revokelogin
The text was updated successfully, but these errors were encountered: