bento-auth-js
Version:
Authentication library for web applications of Bento-Platform
18 lines (17 loc) • 676 B
TypeScript
import React from "react";
export interface BentoAuthContextObject {
applicationUrl: string;
openIdConfigUrl: string;
clientId: string;
scope: string;
postSignOutUrl: string;
authCallbackUrl: string;
}
export declare const DEFAULT_AUTH_SCOPE = "openid email";
export declare const BentoAuthContext: React.Context<BentoAuthContextObject>;
export interface BentoAuthContextProviderProps {
children: React.ReactElement;
value: BentoAuthContextObject;
}
export declare const BentoAuthContextProvider: ({ children, value }: BentoAuthContextProviderProps) => React.JSX.Element;
export declare const useBentoAuthContext: () => BentoAuthContextObject;