You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Endpoints:
+ POST /auth/google (Redirect)
+ POST /auth/google/callback
Flows:
+ Login Screen(Sign in with Google) -> Google OAuth Consent Screen(selects an account and grants access.) -> POST /auth/google/callback -> Backend verifies the token and initiates a session for the user.
Endpoints:
+ POST /auth/facebook (Redirect)
+ POST /auth/facebook/callback
Flows:
+ Login Screen(Sign in with Facebook) -> Facebook OAuth Consent Screen(selects an account and grants access.) -> POST /auth/facebook/callback -> Backend verifies the token and initiates a session for the user.
Sign in with Credentials (Email and Password)
Screens:
+ Login Screen
+ Error Screen
Actions:
+ Enter Email/Password
+ Submit Credentials
+ Handle Error
Endpoints:
+ POST /auth/login
Flows:
+ Login Screen(Sign in with Credentials) -> /auth/login -> Backend verifies the email and password:
If valid, initiates a session and returns an authentication token.
If invalid, shows Error Screen prompting the user to retry.
Actions:
+ Enter Info
+ Submit Sign Up
+ Handle Success/Error
Endpoints:
+ POST /auth/signup
Flows:
+ Sign Up Screen -> /auth/signup ->Backend checks the email:
If it’s new, creates the account, returns an authentication token, and displays the Success Screen.
If the email already exists, shows the Error Screen with an error message.
Actions:
+ Enter Email
+ Submit Email
+ Handle Success/Error
Endpoints:
+ POST /auth/recover
Flows:
+ Forgot Password Screen ->/auth/recover ->Backend checks if the email exists:
If it exists, sends a password recovery email and shows the Email Sent Screen.
If not, displays the Error Screen.
Sign in with Google
+ Login Screen
+ OAuth Consent Screen (Google)
+ Sign in with Google
+ Consent Grant
+ POST /auth/google (Redirect)
+ POST /auth/google/callback
+ Login Screen(Sign in with Google) -> Google OAuth Consent Screen(selects an account and grants access.) -> POST /auth/google/callback -> Backend verifies the token and initiates a session for the user.
Sign in with Facebook
+ Login Screen
+ OAuth Consent Screen (Facebook)
+ Sign in with Facebook
+ Consent Grant
+ POST /auth/facebook (Redirect)
+ POST /auth/facebook/callback
+ Login Screen(Sign in with Facebook) -> Facebook OAuth Consent Screen(selects an account and grants access.) -> POST /auth/facebook/callback -> Backend verifies the token and initiates a session for the user.
Sign in with Credentials (Email and Password)
+ Login Screen
+ Error Screen
+ Enter Email/Password
+ Submit Credentials
+ Handle Error
+ POST /auth/login
+ Login Screen(Sign in with Credentials) -> /auth/login -> Backend verifies the email and password:
If valid, initiates a session and returns an authentication token.
If invalid, shows Error Screen prompting the user to retry.
Sign Up for a New Account
+ Sign Up Screen
+ Success Screen
+ Error Screen
+ Enter Info
+ Submit Sign Up
+ Handle Success/Error
+ POST /auth/signup
+ Sign Up Screen -> /auth/signup ->Backend checks the email:
If it’s new, creates the account, returns an authentication token, and displays the Success Screen.
If the email already exists, shows the Error Screen with an error message.
Forgot Password (Password Recovery)
+ Forgot Password Screen
+ Email Sent Screen
+ Error Screen
+ Enter Email
+ Submit Email
+ Handle Success/Error
+ POST /auth/recover
+ Forgot Password Screen ->/auth/recover ->Backend checks if the email exists:
If it exists, sends a password recovery email and shows the Email Sent Screen.
If not, displays the Error Screen.