@inspatial/auth@0.0.2
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




JSR Score
70%
Published
a month ago (0.0.2)
import { Oauth2Adapter, Oauth2WrappedConfig } from "./config/oauth2.ts"; import { OidcAdapter, OidcWrappedConfig } from "./config/oidc.ts"; export function AppleAuth( config: Oauth2WrappedConfig ): ReturnType<typeof Oauth2Adapter> { return Oauth2Adapter({ ...config, type: "apple", endpoint: { authorization: "https://appleid.apple.com/auth/authorize", token: "https://appleid.apple.com/auth/token", }, }); } export function AppleOidcAuth( config: OidcWrappedConfig ): ReturnType<typeof OidcAdapter> { return OidcAdapter({ ...config, type: "apple", issuer: "https://appleid.apple.com", }); }