-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Added features for passwork sign up and sign in, and profile management * Update README.md * refactor: whole last commit * refactor: check that user is logged in on methods that require it * refactor: Oauth flow simplified * refactor: optimized for minimal characters count and lines of code. * feat: Fetch providers for email * feat: Completed set of feature from issue #2 * docs: updated Readme * fix: fixed some small bugs * feat: Added state change listener
- Loading branch information
1 parent
387d134
commit 6048738
Showing
9 changed files
with
1,067 additions
and
661 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"presets": [["@babel/preset-env", { "useBuiltIns": "usage", "corejs": 3 }]], | ||
"plugins": [ | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-proposal-optional-chaining", | ||
"@babel/plugin-proposal-private-methods" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
// Exchange a refresh token for an ID token errors | ||
"TOKEN_EXPIRED": "The user's credential is no longer valid. The user must sign in again.", | ||
"USER_DISABLED": "The user account has been disabled by an administrator.", | ||
"USER_NOT_FOUND": "There is no user record corresponding to this identifier. The user may have been deleted.", | ||
"INVALID_REFRESH_TOKEN": "An invalid refresh token is provided.", | ||
"INVALID_GRANT_TYPE": "The grant type specified is invalid.", | ||
"MISSING_REFRESH_TOKEN": "No refresh token provided.", | ||
|
||
// Sign up with email / password | ||
"EMAIL_EXISTS": "The email address is already in use by another account.", | ||
"OPERATION_NOT_ALLOWED": "Password sign-in is disabled for this project.", | ||
"TOO_MANY_ATTEMPTS_TRY_LATER": "We have blocked all requests from this device due to unusual activity. Try again later.", | ||
|
||
// Sign in with email / password | ||
"EMAIL_NOT_FOUND": "There is no user record corresponding to this identifier. The user may have been deleted.", | ||
"INVALID_PASSWORD": "The password is invalid or the user does not have a password.", | ||
|
||
// Verify password reset code | ||
"EXPIRED_OOB_CODE": "The action code has expired.", | ||
"INVALID_OOB_CODE": "The action code is invalid. This can happen if the code is malformed, expired, or has already been used.", | ||
|
||
// Change email | ||
"INVALID_ID_TOKEN": "The user's credential is no longer valid. The user must sign in again.", | ||
|
||
// Link with email/password | ||
"CREDENTIAL_TOO_OLD_LOGIN_AGAIN": "The user's credential is no longer valid. The user must sign in again.", | ||
"WEAK_PASSWORD": "The password must be 6 characters long or more.", | ||
|
||
// Other | ||
"INVALID_EMAIL": "The email address is invalid.", | ||
"MISSING_PASSWORD": "The password field is empty." | ||
} |
Oops, something went wrong.