Skip to content

Account Service #24

Description

@natatro

Sign in with Google

  • Screens:
    + Login Screen
    + OAuth Consent Screen (Google)
  • Actions:
    + Sign in with Google
    + Consent Grant
  • 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.

Sign in with Facebook

  • Screens:
    + Login Screen
    + OAuth Consent Screen (Facebook)
  • Actions:
    + Sign in with Facebook
    + Consent Grant
  • 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.

Sign Up for a New Account

  • Screens:
    + Sign Up Screen
    + Success Screen
    + Error Screen
  • 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.

Forgot Password (Password Recovery)

  • Screens:
    + Forgot Password Screen
    + Email Sent Screen
    + Error Screen
  • 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions