https://github.com/miljan-code/express-authjs
An example setup project for Auth.js with Express and React/Angular
https://github.com/miljan-code/express-authjs
angular authjs express react
Last synced: about 2 months ago
JSON representation
An example setup project for Auth.js with Express and React/Angular
- Host: GitHub
- URL: https://github.com/miljan-code/express-authjs
- Owner: miljan-code
- Created: 2024-10-08T08:47:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-14T16:20:20.000Z (over 1 year ago)
- Last Synced: 2025-10-26T00:22:57.263Z (7 months ago)
- Topics: angular, authjs, express, react
- Language: TypeScript
- Homepage:
- Size: 225 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Getting Started
#### Install dependencies
```bash
pnpm install
```
#### Add necessary environment variables in .env in packages/api
```bash
AUTH_SECRET=
AUTH_GOOGLE_ID=
AUTH_GOOGLE_SECRET=
```
To generate AUTH_SECRET on Unix systems you can use command below or check out [https://generate-secret.vercel.app/32](https://generate-secret.vercel.app/32).
```bash
openssl rand -hex 32
```
To get the AUTH_GOOGLE_ID and AUTH_GOOGLE_SECRET go to [Google Developer Console](https://console.cloud.google.com/).
If you need help check [this](https://www.balbooa.com/help/gridbox-documentation/integrations/other/google-client-id) article.
Add authorized redirect URIs.
```bash
http://localhost:3000/api/auth/callback/google # server
http://localhost:5173/api/auth/callback/google # react
http://localhost:4200/api/auth/callback/google # angular
```
##### This is experimental and not production ready.