Skip to main content

A universal and spatial authentication headless framework that provides cross-platform identity management designed to seamlessly work across web, mobile, and XR platforms.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
70%
Published
4 weeks ago (0.0.2)
function createClient
createClient(input: ClientInput): Client

Create a client object for interacting with an OAuth 2.0 authorization server.

Parameters

input: ClientInput
  • The input object containing the client ID, issuer, and optional fetch function.

Return Type

An object containing methods for authorizing, exchanging tokens, refreshing tokens, and verifying tokens.

Add Package

deno add jsr:@inspatial/auth

Import symbol

import { createClient } from "@inspatial/auth";

---- OR ----

Import directly with a jsr specifier

import { createClient } from "jsr:@inspatial/auth";

Add Package

npx jsr add @inspatial/auth

Import symbol

import { createClient } from "@inspatial/auth";

Add Package

yarn dlx jsr add @inspatial/auth

Import symbol

import { createClient } from "@inspatial/auth";

Add Package

pnpm dlx jsr add @inspatial/auth

Import symbol

import { createClient } from "@inspatial/auth";

Add Package

bunx jsr add @inspatial/auth

Import symbol

import { createClient } from "@inspatial/auth";