@roadmanjs/auth-client 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+
2
+ <p align="center">
3
+ <h1 align="center"> Roadman - Couchbase UserType Model + Firebase Auth </h1>
4
+ </p>
5
+
6
+
7
+ ## An auth roadman using a UserType model in Couchbase and firebase-auth
8
+
9
+ ### How to use
10
+ ```
11
+ yarn add @roadmanjs/auth
12
+ ```
13
+
14
+ app.ts
15
+ ```ts
16
+ import roadman from 'roadman';
17
+ import {AuthResolvers} from '@roadmanjs/auth';
18
+
19
+ await roadman({
20
+ resolvers: [...AuthResolvers, ...MyOtherResolvers]
21
+ });
22
+ ```
23
+
24
+ also exports, middleswares like, isAuth, or FirebaseToken
25
+
26
+ #### Env required
27
+ ```sh
28
+ DEBUG=roadman*
29
+
30
+ # Firebasebase service account json string
31
+ FIREBASE_SA={"firebase admmin service account": ""}
32
+
33
+ # Couchbase envs
34
+ COUCHBASE_URL=
35
+ COUCHBASE_BUCKET=
36
+ COUCHBASE_USERNAME=
37
+ COUCHBASE_PASSWORD=
38
+
39
+ # Access token generator secrets
40
+ ACCESS_TOKEN_SECRET=xxxxx
41
+ REFRESH_TOKEN_SECRET=xxxx
42
+ ```
package/package.json ADDED
@@ -0,0 +1 @@
1
+ {"name":"@roadmanjs/auth-client","version":"0.0.13","description":"GraphQL client gql for @roadmanjs/auth","main":"dist/index.js","types":"dist/index.d.ts","files":["docs/","dist/","register/","LICENSE"],"author":{"name":"Ceddy Muhoza","email":"ceddymuhoza@gmail.com","url":"https://ceddy.org"},"license":"MIT","private":false,"scripts":{},"lint-staged":{"*.{ts,tsx}":["npm run eslint"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"devDependencies":{},"peerDependencies":{},"dependencies":{"graphql-tag":"^2.12.5"}}
@@ -0,0 +1 @@
1
+ require('../').register()
@@ -0,0 +1,3 @@
1
+ require('../').register({
2
+ transpileOnly: true
3
+ })
@@ -0,0 +1,3 @@
1
+ require('../').register({
2
+ typeCheck: true
3
+ })