File

src/auth/interfaces/cognito.interface.ts

Index

Properties

Properties

accessToken
accessToken: string
Type : string
payload
payload: literal type
Type : literal type
refreshToken
refreshToken: string
Type : string
import type { CognitoUser } from "amazon-cognito-identity-js";
import type CognitoIdentityServiceProvider from "aws-sdk/clients/cognitoidentityserviceprovider";

export interface ICognitoUserSession {
  accessToken: string;
  refreshToken: string;
  payload: { [key: string]: unknown };
}

export interface IChangePassword {
  userCognito: CognitoUser;
  newPassword: string;
  currentPassword: string;
}

export interface ITotpChallenge {
  email: string;
  mfaCode: string;
  session: string;
  cognitoIdentityServiceProvider: CognitoIdentityServiceProvider;
}

results matching ""

    No results matching ""