Skip to content

Step 6. Log in

Users log in with the account they created. You must call the login method, and then issue tokens and register the session.

  1. Call the login method to issue an AuthorizationCode.
  2. Use the AuthorizationCode as input to issue an access token and a refresh token.
  3. Register the access token and refresh token in the session manager to activate the login session.

Guest login

To log in with a guest account, implement the login call, token issuance, and session registration in that order.

  1. Log in as a guest
  2. Issue a token
  3. Activate the session

Username login

To log in with a username account, implement the login call, token issuance, and session registration in that order.

  1. Log in with a username
  2. Issue a token
  3. Activate the session