Skip to content

Commit

Permalink
fix: add missing param and AuthAction for currentCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
erinleigh90 committed Aug 11, 2023
1 parent cbf07be commit 10b14ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion packages/auth/src/internals/InternalAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,9 @@ export class InternalAuthClass {
}
}

public currentCredentials(): Promise<ICredentials> {
public currentCredentials(
customUserAgentDetails?: CustomUserAgentDetails
): Promise<ICredentials> {
logger.debug('getting current credentials');
return this.Credentials.get();
}
Expand Down
9 changes: 5 additions & 4 deletions packages/core/src/Platform/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ export enum AuthAction {
VerifiedContact = '31',
UserSession = '32',
CurrentUserCredentials = '33',
CurrentUserInfo = '34',
RememberDevice = '35',
ForgetDevice = '36',
FetchDevices = '37',
CurrentCredentials = '34',
CurrentUserInfo = '35',
RememberDevice = '36',
ForgetDevice = '37',
FetchDevices = '38',
}
export enum DataStoreAction {
Subscribe = '1',
Expand Down

0 comments on commit 10b14ca

Please sign in to comment.