/packages/auth
) for auth so you can use the same auth-options and share the auth share across all your apps.
Auth is powered by Next-Auth or Auth.js.
Authentication with TS-Rest and Next-Auth (Auth.js) is implemented by utizing the JWT tokens that Next-Auth manages.
/token
.Request
as auth
.
user.role
and user.uid
to the auth object (Provided that
exists in the database).