Expand description
Bearer auth and User Signup.
Enums§
- Bearer
Authenticator - A
BearerAuthenticator(1) stores existing fresh auth tokens and (2) authenticates and fetches new auth tokens when they expire.
Constants§
Functions§
- do_
bearer_ auth - Create a new short-lived
BearerAuthRequest, sign it, and send the request. Returns theTokenWithExpirationif the auth request succeeds. - token_
needs_ refresh - Returns
trueif we should refresh the token (i.e., it’s expired or about to expire).