Authless Client •
Node.js client for authless-server written in TypeScript.
Install
yarn add @authless/client
# - or -
npm install @authless/client
Usage
import { Client } from '@authless/client'
// setup a client
const authlessClient = new Client({
serverUri: 'http://example.com:4000',
retries: 2,
});
// use it
authlessClient.url('https://example.com', { referer: 'optional', responseFormat: 'json' })
authlessClient.url('https://example.com', { responseFormat: 'png' })