mirror of
https://github.com/supabase/supabase.git
synced 2026-10-19 16:19:10 +03:00
* Fix #26802: Implement client-side only JWT secret generation * generate random string with getRandomValues --------- Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
15 lines
319 B
TypeScript
15 lines
319 B
TypeScript
import dynamic from 'next/dynamic'
|
|
import { Suspense } from 'react'
|
|
|
|
const DynamicJwtGenerator = dynamic(() => import('./JwtGenerator'), { ssr: false })
|
|
|
|
const JwtGenerator = () => {
|
|
return (
|
|
<Suspense fallback={<div>Loading...</div>}>
|
|
<DynamicJwtGenerator />
|
|
</Suspense>
|
|
)
|
|
}
|
|
|
|
export { JwtGenerator }
|