Open teddybee opened 1 year ago
There is an available doc for client-side usage in the README:
import { signIn, signOut } from 'fastify-next-auth/client'
// Redirects to sign in page
signIn()
// Starts OAuth sign-in flow
signIn('google')
// Starts Email sign-in flow
signIn('email', { email: 'hello@mail.com' })
signOut()
I saw it, but how can the lib knows the backend`s address? My frontend is on localhost:3000, the backend is on localhost:5000.
I would like to use this with React SPA. How can it be possible? (or is it restricted only for SSR?)