Closed dct0 closed 2 months ago
BRANCH OFF #12 IF NOT MERGED ALREADY
Create a useAuth hook in the client/src/hooks/auth.ts. It should contain a method login() which when called
useAuth
client/src/hooks/auth.ts
login()
client/src/lib/api.ts
There's no need to use tanstack query for this, (unlike the usePings example). You can just create a vanilla hook
Branch issue-45-Connect_login_modal_to_the_backend created!
Basic Information
BRANCH OFF #12 IF NOT MERGED ALREADY
Create a
useAuth
hook in theclient/src/hooks/auth.ts
. It should contain a methodlogin()
which when calledclient/src/lib/api.ts
Other Information
There's no need to use tanstack query for this, (unlike the usePings example). You can just create a vanilla hook