UNPKG

@arc-publishing/sdk-identity

Version:
16 lines (15 loc) 774 B
import { GoogleUser } from './socialSignOnTypes'; import { APIErrorResponse } from '../serviceHelpers/APIErrorResponse'; import { UserIdentity } from './userIdentity'; export declare const deprecationMessage = "Legacy Google Sign In will be deprecated on Dec 31, 2022. Use the new Arc Identity & Sign In With Google SDKs."; export declare const googleSignOn: (googleUser?: GoogleUser) => Promise<APIErrorResponse | UserIdentity | Error>; export declare const signOnSwgUser: ({ idToken, swgSubscriptionTokenResponse }: { idToken?: string; swgSubscriptionTokenResponse?: { profileId: string; accessToken: string; refreshToken: string; exists: boolean; }; }) => Promise<UserIdentity | APIErrorResponse>; export default googleSignOn;