Skip to content
/ auth Public

An auth roadman using a UserType model in Couchbase and firebase-auth

Notifications You must be signed in to change notification settings

roadmanjs/auth

Repository files navigation

Roadman - Couchbase UserType Model + Firebase Auth

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

About

An auth roadman using a UserType model in Couchbase and firebase-auth

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published