tldraw/apps/www/hooks/useAccountHandlers.ts
Steve Ruiz 7c2777966f
[improvement] Multiplayer + cursors (#457)
* bump versions, improve cursors

* Spline cursors
2021-12-22 00:14:38 +00:00

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 }
}