1.0.0-rc.12 • Published 1 year ago

@exobase/use-jwt-auth v1.0.0-rc.12

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Provides an Exobase hook to parse and validate a JWT token in a request. It also includes a utility for generating JWT tokens.

Usage

import { compose } from 'radash'
import type { Props } from '@exobase/core'
import { useJWTAuth } from '@exobase/use-jwt-auth'

const endpoint = (props: Props) => {
  console.log(props)
}

export default compose(
  useExpress(),
  useJWTAuth({
    type: 'id',
    secret: 'my-little-secret'
  }),
  endpoint
)
1.0.0-rc.12

1 year ago

1.0.0-rc.11

1 year ago

1.0.0-rc.10

1 year ago

1.0.0-rc.9

1 year ago

1.0.0-rc.8

1 year ago

1.0.0-rc.7

1 year ago

1.0.0-rc.6

2 years ago

1.0.0-rc.5

2 years ago

1.0.0-rc.4

2 years ago

1.0.0-rc.3

2 years ago

1.0.0-rc.2

2 years ago