Returns the setter for the access token in TokenContext. Use to update token after login/signup or clear it on logout. Must be used inside AuthWrapper. Typically you won't need this directly — use useLogin, useSignUp, and useLogout instead.
AuthWrapper
useLogin
useSignUp
useLogout
Dispatch<SetStateAction<string | null>> — call with a string to set the token, or null to clear.
Dispatch<SetStateAction<string | null>>
null
Returns the setter for the access token in TokenContext. Use to update token after login/signup or clear it on logout. Must be used inside
AuthWrapper. Typically you won't need this directly — useuseLogin,useSignUp, anduseLogoutinstead.