# suite-auth

User authentication utilities.

### Getting the client

Use the provided `useAuthClient<AuthClient>()` hook at any of your components to get a auth client.
E.g. for logging out or getting the access token.

```tsx
import { useAuthClient } from '@theorchard/suite-auth';

const LeftNavFooter: FC<object> = () => {
    const authClient = useAuthClient();

    return (
        <footer>
            <Button onClick={() => authClient.logout()} >
                <span>LogOut</span>
            </Button>
        </footer>
    )
)
```
