yarn add @roadmanjs/auth
app.ts
import roadman from 'roadman';
import {AuthResolvers} from '@roadmanjs/auth';
await roadman({
resolvers: [...AuthResolvers, ...MyOtherResolvers]
});
also exports, middleswares like, isAuth, or FirebaseToken
DEBUG=roadman*
# Firebasebase service account json string
FIREBASE_SA={"firebase admmin service account": ""}
# Couchbase envs
COUCHBASE_URL=
COUCHBASE_BUCKET=
COUCHBASE_USERNAME=
COUCHBASE_PASSWORD=
# Access token generator secrets
ACCESS_TOKEN_SECRET=xxxxx
REFRESH_TOKEN_SECRET=xxxx