-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consume verify token api and refator its implementation to middleware
- Loading branch information
1 parent
84b6981
commit 8d42826
Showing
23 changed files
with
275 additions
and
106 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Loader2 } from "lucide-react"; | ||
|
||
const Loading = () => { | ||
return ( | ||
<section className="flex-center bg-black/15 w-full h-full absolute z-50"> | ||
<div className="p-4 rounded-full border border-primary/80 bg-primary/15 drop-shadow-primary-glow backdrop-blur-lg "> | ||
<Loader2 | ||
className="text-primary animate-spin duration-200 transition-transform" | ||
size={32} | ||
/> | ||
</div> | ||
</section> | ||
); | ||
}; | ||
|
||
export { Loading }; |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,57 +11,74 @@ export const SIGNUPINPUTS = [ | |
{ | ||
name: "username", | ||
label: "Username", | ||
tooltip: "Choose a username between 3 and 20 characters.", | ||
placeholder: "e.g. john doe", | ||
type: "text", | ||
autoComplete: "username", | ||
suffixIcon: User, | ||
validation: ValidateUsername, | ||
maxLength: 20, | ||
}, | ||
{ | ||
name: "email", | ||
label: "Email Address", | ||
tooltip: | ||
"Please enter a valid email address. Ensure it includes an '@' symbol and a domain name.", | ||
placeholder: "e.g. [email protected]", | ||
type: "email", | ||
autoComplete: "email", | ||
suffixIcon: Mail, | ||
validation: ValidateEmail, | ||
maxLength: 254, | ||
}, | ||
{ | ||
name: "password", | ||
label: "Password", | ||
tooltip: | ||
"Create a strong password with at least 8 characters. Include a mix of uppercase letters, lowercase letters, numbers, and special characters for better security.", | ||
placeholder: "e.g. m#P52s@ap$V", | ||
type: "password", | ||
autoComplete: "new-password", | ||
suffixIcon: Lock, | ||
validation: ValidatePassword, | ||
maxLength: 128, | ||
}, | ||
{ | ||
label: "Confirm Password", | ||
tooltip: | ||
"Re-enter your password to confirm it matches the one you typed above. Ensure both passwords are identical.", | ||
placeholder: "e.g. m#P52s@ap$V", | ||
type: "password", | ||
autoComplete: "new-password", | ||
suffixIcon: Lock, | ||
validation: ValidateConfirmPassword, | ||
maxLength: 128, | ||
}, | ||
]; | ||
|
||
export const SIGNININPUTS = [ | ||
{ | ||
name: "email", | ||
label: "Email Address", | ||
tooltip: | ||
"Please enter a valid email address. Ensure it includes an '@' symbol and a domain name.", | ||
placeholder: "e.g. [email protected]", | ||
type: "email", | ||
autoComplete: "email", | ||
suffixIcon: Mail, | ||
validation: ValidateEmail, | ||
maxLength: 254, | ||
}, | ||
{ | ||
name: "password", | ||
label: "Password", | ||
tooltip: | ||
"Create a strong password with at least 8 characters. Include a mix of uppercase letters, lowercase letters, numbers, and special characters for better security.", | ||
placeholder: "e.g. m#P52s@ap$V", | ||
type: "password", | ||
autoComplete: "new-password", | ||
suffixIcon: Lock, | ||
validation: ValidatePassword, | ||
maxLength: 128, | ||
}, | ||
]; |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export const SIGNUPKEY = "sign-up"; | ||
export const SIGNINKEY = "sign-in"; | ||
export const SIGNOUTKEY = "sign-out"; | ||
export const VERIFYTOKENKEY = "verify-token"; |
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
Oops, something went wrong.