This repository has been archived by the owner on May 15, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lib): add function 'isApiAuthenticated'
## what - add function 'isApiAuthenticated' to ./src/lib/AuthSession/index.ts - function is used for checking if the user has authenticated ## how - to be used by API ONLY - check if a session cookie exists - if the session cookie exists, then the user is authenticated. return true - if the session cookie doesn't exists, then the user is NOT authenticated, return false ## why - this will be used as a check before processing any of the protected API routes ## where - ./src/lib/AuthSession/index.ts ## usage
- Loading branch information