@tasuku/auth-provider
v0.2.3
Published
Authentication SSO Provider for Tasuku
Downloads
42
Readme
Tasuku Auth Provider
Installation
- Run
bun install @tasuku/auth-provider
Communication Channels
The easiest way to communicate with the team is via GitHub issues. Please file new issues, feature requests and suggestions, but DO search for similar open/closed pre-existing issues before creating a new issue.
'use client'
import { TasukuAuthProvider } from '@tasuku/auth-provider'
export default function Layout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<TasukuAuthProvider authUrl='http://localhost:5001' >
{children}
</TasukuAuthProvider>
);
}
"use client";
import { useTasukuAuth } from "@tasuku/auth-provider";
export default function Home() {
const { accessToken, requestToken } = useTasukuAuth()
console.log(accessToken,requestToken)
return (<></>);
}
License
Distributed under the MIT license. See LICENSE for details.