Sensorclouds
Security

Authentication

How Sensorclouds handles user login and session management

Sensorclouds uses JWT-based authentication with secure httpOnly cookies.

Getting Into Your Account

Self-service flows are available right from the login page:

  • Sign up - register a new workspace and become its first administrator. See Creating Your Account.
  • Email verification - confirm your address via an emailed link (with Resend verification if it doesn't arrive).
  • Forgot password / reset - request a reset link, or have an administrator issue one. See Resetting Your Password.

Login

Login Page

  • Authenticate with email + password
  • "Remember me" option controls token storage (localStorage vs sessionStorage)
  • Tokens are stored as httpOnly cookies (secure, sameSite: strict)

Token Details

TokenExpiryPurpose
Access TokenShort-livedAuthorizes API requests
Refresh TokenLonger-livedObtains new access tokens

Token Management

  • Primary method: httpOnly cookies - automatically included in all requests
  • Fallback: Bearer token header - for API clients and integrations
  • Silent refresh: Sessions refresh quietly in the background, so you're not logged out mid-task when a short-lived token expires
  • Token rotation: Each refresh generates a new refresh token, invalidating the previous one

Logout

When you log out:

  1. Access and refresh token cookies are cleared
  2. The refresh token is revoked on the server
  3. You are redirected to the login page

Role-Based Redirects

After login, you are redirected based on your role:

RoleRedirect URL
Admin/tenant-admin/home
Engineer/tenant-admin/home
Crew / User/crew/home

On this page