Lockyard

Signing in

Who it is for

Customers and staff.

What you can do

  • Sign up with name, email, and password, or with Google or GitHub.
  • Sign in with email and password, or with Google or GitHub.
  • Sign out from the header.
  • Admins use the Facilities and Admin links that appear for admin accounts.

How it works

  • Routes: /sign-in (app/sign-in/page.tsx) and /sign-up (app/sign-up/page.tsx).
  • The header (components/AuthHeader.tsx) shows Sign in and Sign up when signed out, and your name, Admin (if admin), and Sign out when signed in.
  • Sessions come from lib/dal.ts (getSession, verifySession, verifyAdmin). verifyAdmin allows a user whose role is admin or whose id matches ADMIN_USER_ID.
  • Home (app/page.tsx) sends an admin to /admin/facilities and everyone else to /rent.

Limits

  • This guide does not describe password reset or account deletion; those are not in this app.
  • Admin status is set outside the normal sign-up flow.