Skip to content

Commit

Permalink
fix(auth): add deprecated signInDetails type to AuthTokens type (#12981)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinkumar6 committed Feb 20, 2024
1 parent c15fdd8 commit b758843
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/core/src/singleton/Auth/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ export interface FetchAuthSessionOptions {
export interface AuthTokens {
idToken?: JWT;
accessToken: JWT;
/**
* @deprecated
* Use getCurrentUser to access signInDetails
*/
signInDetails?: AWSAuthSignInDetails;
}

export type AuthStandardAttributeKey =
Expand Down Expand Up @@ -238,3 +243,22 @@ export interface AWSCredentials {
sessionToken?: string;
expiration?: Date;
}

// copied from packages/auth/src/providers/cognito/types/models.ts#L94
/**
* @deprecated
*/
interface AWSAuthSignInDetails {
loginId?: string;
authFlowType?: AuthFlowType;
}

// copied from packages/auth/src/providers/cognito/types/models.ts#L22
/**
* @deprecated
*/
type AuthFlowType =
| 'USER_SRP_AUTH'
| 'CUSTOM_WITH_SRP'
| 'CUSTOM_WITHOUT_SRP'
| 'USER_PASSWORD_AUTH';

0 comments on commit b758843

Please sign in to comment.