passport-token-introspection

Passport strategy for authenticating when using a token instrospection endpoint.

Usage no npm install needed!

<script type="module">
  import passportTokenIntrospection from 'https://cdn.skypack.dev/passport-token-introspection';
</script>

README

Passport Token Introspection Strategy

It will expect:

  • token: the value of the token.
  • token_type_hint: access_token or refresh_token. This is optional.
  • id: Id of the Resource Server making the call.
  • secret: Password of the Resource Server making the call.

id and secret will be passed to the verify function.

It's written in Typescript so if your library it's also using it you will be getting typings for free.

npm i -S passport-token-introspection