13 lines
321 B
TypeScript
13 lines
321 B
TypeScript
'use client';
|
|
|
|
import { EncryptIDProvider } from '@encryptid/sdk/ui/react';
|
|
|
|
export function AuthProvider({ children }: { children: React.ReactNode }) {
|
|
const Provider = EncryptIDProvider as any;
|
|
return (
|
|
<Provider serverUrl={process.env.NEXT_PUBLIC_ENCRYPTID_SERVER_URL}>
|
|
{children}
|
|
</Provider>
|
|
);
|
|
}
|