release: WRNexusJS 0.5.0
This commit is contained in:
1 parent
76c768099d
commit
6afe32f63f
456 files changed
+40879
-8850
No files matched your search
@@ -0,0 +1,16 @@
|
||||
export interface AuthRuntimeApi {
|
||||
mount(root?: ParentNode): void;
|
||||
unmount(root?: ParentNode): void;
|
||||
registerPasskey(element: HTMLElement): Promise<void>;
|
||||
authenticatePasskey(element: HTMLElement): Promise<void>;
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
WRNexusAuth?: AuthRuntimeApi;
|
||||
}
|
||||
}
|
||||
|
||||
export function authRuntime(): AuthRuntimeApi | undefined {
|
||||
return typeof window === "undefined" ? undefined : window.WRNexusAuth;
|
||||
}
|
||||
Reference in new issue
Block a user