space_authclient
v10.0.17
Published
Space Academics client for Auth service
Downloads
1
Readme
Space Academics Auth Service Client
This is a client for the Space Academics Auth Service. It is a simple wrapper around the Auth Service API.
Installation
npm i space_auth_client
Usage
import { AuthClient } from 'space_auth_client';
API
AuthClient
Constructor
checkAuth(token)
Checks if the token is valid. Returns a promise that resolves to a boolean.
checkPermission(user, permission)
Checks if the user has the permission. Returns a promise that resolves to a boolean.