e6a3e5c3ea
* move core into repo, apps into apps folder, update tests * Update scripts for build:core * improve scripts * remove noise from www * Update .gitignore * Fix focus bug * add ci test script * Update main.yml
14 lines
295 B
TypeScript
14 lines
295 B
TypeScript
import * as React from 'react'
|
|
import { signIn, signOut } from 'next-auth/client'
|
|
|
|
export function useAccountHandlers() {
|
|
const onSignIn = React.useCallback(() => {
|
|
signIn()
|
|
}, [])
|
|
|
|
const onSignOut = React.useCallback(() => {
|
|
signOut()
|
|
}, [])
|
|
|
|
return { onSignIn, onSignOut }
|
|
}
|