pub struct AuthClient { /* private fields */ }Available on crate feature
client only.Implementations§
Source§impl AuthClient
impl AuthClient
Sourcepub async fn frontend_token(
&self,
req: FrontendTokenRequest,
) -> Result<FrontendToken, Error>
pub async fn frontend_token( &self, req: FrontendTokenRequest, ) -> Result<FrontendToken, Error>
Exchange a publishable key for a short-lived bearer token for an existing customer.
Sourcepub async fn frontend_token_auto_provision(
&self,
req: FrontendTokenAutoProvisionRequest,
) -> Result<FrontendToken, Error>
pub async fn frontend_token_auto_provision( &self, req: FrontendTokenAutoProvisionRequest, ) -> Result<FrontendToken, Error>
Exchange a publishable key for a frontend token, creating the customer if needed. The customer will be auto-provisioned on the project’s free tier.
Trait Implementations§
Source§impl Clone for AuthClient
impl Clone for AuthClient
Source§fn clone(&self) -> AuthClient
fn clone(&self) -> AuthClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuthClient
impl !RefUnwindSafe for AuthClient
impl Send for AuthClient
impl Sync for AuthClient
impl Unpin for AuthClient
impl !UnwindSafe for AuthClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more