Open albert118 opened 1 year ago
This is a two-parter. Both need to be completed to minimally support auth.
To keep the login process consistent, we should create a useLogin hook. This hook should,
useLogin
isLoggedIn
Like the above hook, but we'll also need to include our app's workflow here.
contact
we can listen for the event,
see more on their docs
etc. similar stuff - I haven't thought this one through as much but should be obvious
We'll most likely repeat similar patterns for the remaining workflows,
This is a two-parter. Both need to be completed to minimally support auth.
Custom Login Hook
To keep the login process consistent, we should create a
useLogin
hook. This hook should,isLoggedIn
flagCustom Sign-Up Hook
Like the above hook, but we'll also need to include our app's workflow here.
contact
entitywe can listen for the event,
see more on their docs
Custom Sign Out Hook
etc. similar stuff - I haven't thought this one through as much but should be obvious