@roadmanjs/auth
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @roadmanjs/auth

Weekly Downloads

2

Version

1.1.5

License

MIT

Unpacked Size

106 kB

Total Files

101

Last publish

Collaborators

  • ceddy