Skip to content

Create Session

deh3nne edited this page Mar 1, 2021 · 1 revision

The user clicks the button "Create Session"

  1. Request to NextJS Api with information (sessionName, userName, userId)
  • Information is also stored in the browser (local storage?)
  1. Request to Serverless Function to create a new session
  • with information (sessionName, userName, userId)
  • maybe creates a valid JWT token for server and client
  1. Serverless Function stores session in a database entry
  • Creates a sessionId
  • Return the sessionId to the client1
Clone this wiki locally