Web APITypesType AliasesGetTokenOn this pageType Alias: GetToken() GetToken: () => Promise<Nullable<string>> If authorized, retrieves currentSession from Auth module from @aws-amplify/auth package and retrieves idToken from currentUser object. Returns Promise<Nullable<string>>