https://github.com/threepointone/remix-cloudflare-oauth
A starterkit for remix + cloudflare oauth
https://github.com/threepointone/remix-cloudflare-oauth
Last synced: about 1 month ago
JSON representation
A starterkit for remix + cloudflare oauth
- Host: GitHub
- URL: https://github.com/threepointone/remix-cloudflare-oauth
- Owner: threepointone
- Created: 2024-08-28T18:12:59.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-30T16:49:45.000Z (8 months ago)
- Last Synced: 2025-04-10T04:43:55.231Z (about 1 month ago)
- Language: TypeScript
- Size: 102 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## remix-cloudflare-oauth
A remix template setup with Cloudflare OAuth.
### Setup
`cp .env.example .env`
In `.env`:
- fill in the `OAUTH_CLIENT_ID` and `OAUTH_CLIENT_SECRET` with your Cloudflare OAuth credentials.
- fill in `SESSION_SECRET` with a random string.
- fill in the `DEV_HOST` and `PROD_HOST` with your development and production hosts### Running the app
`npm run dev`
### Deploying
`npm run deploy`
#### How do I make an "authorized" api call?
See the example in `/routes/_index.ts`.
#### Can I use the new vite hotness?
Not yet, we still need the environments thing, but we should be able to move to it when it's ready.
### TODO:
- refresh token when expired
- actually revoke token on logout
- STAGING_HOST?