Authress / authress-sdk.js

The Authress SDK for Javascript provides authorization as a service with fully compatible REST apis.

Home Page:https://authress.io/app/#/api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Authress media banner

Authress SDK for Javascript/Typscript

This is the Authress SDK used to integrate with the authorization as a service provider Authress at https://authress.io.

Usage

npm install @authress/sdk

Then required the package:

const { AuthressClient } = require('@authress/sdk');

Getting Started

Frequently Asked Questions

  • Where do I get a user ID from?

Every JWT contains a user ID, and you can pull it out from there using the TokenVerifier import or verifyToken method. For more details see Authress JWT access tokens.

Method Documentation

SDK examples

Framework Examples

See all the available Authress Starter Kits

Contributions

Adding new DTO and methods

Auto generate the new code using this openapi generator, and merge the files into the appropriate locations:

curl -XPOST https://generator3.swagger.io/api/generate -H 'content-type: application/json' -d '{"specURL" : "https://api.authress.io/.well-known/openapi.json","lang" : "typescript-fetch","type" : "CLIENT","codegenVersion" : "V3"}'  --output generated_sdk.tar.gz

About

The Authress SDK for Javascript provides authorization as a service with fully compatible REST apis.

https://authress.io/app/#/api

License:Apache License 2.0


Languages

Language:JavaScript 67.0%Language:TypeScript 33.0%