2.0.0 • Published 9 months ago

@nitra/auth-m2m v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

@nitra/auth-m2m

Use without cache:

import { getGraphQLClient } from '@nitra/auth-m2m'

const qlClient = await getGraphQLClient('remote_gt', 'secret')

Use with cache:

import { getGraphQLClient } from '@nitra/auth-m2m'
import KeyvFirestore from 'keyv-firestore'

const store = new KeyvFirestore({
  collection: process.env.CACHE_COLLECTION
})

const qlClient = await getGraphQLClient('remote_gt', 'secret', store)

with process.env.KID === 'dev' getGraphQLClient return token without backend query

2.0.0

9 months ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago