@roadmanjs/auth-client
v0.1.1
Published
GraphQL client gql for @roadmanjs/auth
Downloads
12
Readme
An auth roadman using a UserType model in Couchbase and firebase-auth
How to use
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
Env required
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