Skip to content

Commit 1c84ee6

Browse files
authoredJun 3, 2022
refactor(component): add mfa property to ClientAuthCode interface (#80)
* refactor(component): add mfa property to ClientAuthCode interface gh-69 * refactor(component): update error keys gh-69
1 parent 1933791 commit 1c84ee6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎src/error-keys.ts

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const enum AuthErrorKeys {
77
ClientSecretMissing = 'Client Secret Missing',
88
ClientUserMissing = 'Client User Missing',
99
InvalidCredentials = 'Invalid Credentials',
10+
UserVerificationFailed = 'User Verification Failed',
1011
UnknownError = 'Unknown Error',
1112
WrongPassword = 'Incorrect Password',
1213
KeyInvalid = 'Key Invalid',

‎src/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ export interface ClientAuthCode<T extends IAuthUser, ID = number> {
3939
clientId: string;
4040
userId?: ID;
4141
user?: T;
42+
mfa?: boolean;
4243
}

0 commit comments

Comments
 (0)
Please sign in to comment.