1.2.0 • Published 1 year ago

@nitra/auth-m2m v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year 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

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago