@keebesports/keebe-auth-next
v0.0.25-alpha
Published
next auth package for keebesports apps
Maintainers
Readme
KeebeSports auth for nextjs
- The component depends on
- tailwindcss
Init auth config in _app.tsx
import { initAuth } from "keebe-auth-next";
initAuth();
Use AuthProvider in app.tsx
- Use the useSession hook to evaluate if the user is authenticated
const {loading, session} = useSession;
- Also you can use the Authorized component
- your are logged
- you can access to the session object (session)=> user: session.user.email
There is a complete example in the app folder
