7c2777966f
* bump versions, improve cursors * Spline cursors
14 lines
294 B
TypeScript
14 lines
294 B
TypeScript
import * as React from 'react'
|
|
import { signIn, signOut } from 'next-auth/react'
|
|
|
|
export function useAccountHandlers() {
|
|
const onSignIn = React.useCallback(() => {
|
|
signIn()
|
|
}, [])
|
|
|
|
const onSignOut = React.useCallback(() => {
|
|
signOut()
|
|
}, [])
|
|
|
|
return { onSignIn, onSignOut }
|
|
}
|