A remix template setup with Cloudflare OAuth.
cp .env.example .env
In .env
:
- fill in the
OAUTH_CLIENT_ID
andOAUTH_CLIENT_SECRET
with your Cloudflare OAuth credentials. - fill in
SESSION_SECRET
with a random string. - fill in the
DEV_HOST
andPROD_HOST
with your development and production hosts
npm run dev
npm run deploy
See the example in /routes/_index.ts
.
Not yet, we still need the environments thing, but we should be able to move to it when it's ready.
- refresh token when expired
- actually revoke token on logout
- STAGING_HOST?