@openauth/facebook
Version:
Facebook OAuth library
23 lines • 785 B
TypeScript
import { type HttpClientError, OAuth20, type OAuth2Options, OAuthError, type UserProfile } from "@openauth/core";
export interface UserRawData {
id: string;
email?: string;
name?: string;
}
export interface FacebookOAuthOptions extends OAuth2Options {
version?: string;
}
export declare class FacebookOAuth extends OAuth20 {
get authRequestUri(): string;
get accessTokenRequestUri(): string;
get userProfileUri(): string;
jwksUri: string;
jwtIssuer: string;
scopes: string[];
scopeSeparator: string;
version: string;
constructor(options: FacebookOAuthOptions);
createErrorFromHttpClientError(e: HttpClientError): OAuthError;
mapDataToUserProfile(data: UserRawData): UserProfile;
}
//# sourceMappingURL=facebook_oauth.d.ts.map