아우라베이스 로고
아우라베이스문서
문서›자바스크립트 SDK 참조›React reference

JavaScript SDK: React reference

Reactive authentication state for React: a context provider, hooks and conditional wrappers.

6분 읽기·레벨 참조·2026. 10. 12.에 개정됨
이 페이지는 아직 귀하의 언어로 제공되지 않습니다. 영어로 표시됩니다.
이 영어 텍스트는 프랑스어 원본에서 자동으로 생성되었으며 아직 검토되지 않았습니다.
#
기능

Exported functions

FunctionDescription
function AuthProvider({ client, children, initialSession }: AuthProviderProps): unknownWraps your application to provide reactive Aurabase authentication context.
function useAuth(): AuthContextValueAccess the core Aurabase authentication state and actions.
function useUser(): User | nullReturns the currently authenticated user, or null if unauthenticated.
function useSession(): Session | nullReturns the current active session.
function SignedIn({ children }: { children: ReactNode; }): unknownConditional component rendering children only when a user is signed in.
function SignedOut({ children }: { children: ReactNode; }): unknownConditional component rendering children only when NO user is signed in.
Generated page

This page is generated from the type declarations and comments of the SDK, so it cannot drift from the published code. For worked examples, read the guides.

마지막 업데이트 · 2026. 10. 12.