@ivyhjk/amplify-react-oauth
Version:
React authentication wrapper for amplify, based on OAuth2
9 lines • 473 B
TypeScript
import { CognitoHostedUIIdentityProvider } from '@aws-amplify/auth';
import { BaseCoreAuthContextValue } from '@ivyhjk/amplify-react-core-auth';
import { CognitoUser } from 'amazon-cognito-identity-js';
export declare type OAuthUser = CognitoUser;
export interface OAuthContextValue extends BaseCoreAuthContextValue<OAuthUser> {
federatedSignIn: (provider: CognitoHostedUIIdentityProvider) => void;
signOut: () => void;
}
//# sourceMappingURL=types.d.ts.map