Skip to main content

Get Started


yarn add @hexhive/auth-ui

Usage#

App.tsx


import React from 'react';import { AuthProvider } from '@hexhive/auth-ui';export const App = () => {
    return (        <AuthProvider               authorizationServer={"https://api.hexhive.io"}            clientId={CLIENT_ID}            clientSecret={CLIENT_SECRET} //needs to be removed            redirectUri={REDIRECT_URI}>                <Body />        </AuthProvider>    )}

Body.tsx


export const Body = () => {    const { token, user } = useAuth();        return (        <div>
        </div>    )}