10.0.17 • Published 1 year ago

space_authclient v10.0.17

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
1 year ago

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.

10.0.17

1 year ago

1.0.16

1 year ago