Struct amazon_cognito_rust::CognitoUser [] [src]

pub struct CognitoUser<S: Storage> { /* fields omitted */ }

Methods

impl<S: Storage> CognitoUser<S>
[src]

[src]

[src]

This uses the refreshToken to retrieve a new session @param {CognitoRefreshToken} refreshToken A previous session's refresh token. @param {nodeCallback} callback Called on success or error. @returns {void}

[src]

This is used to clear the session tokens from local storage @returns {void}

[src]

[src]

[src]

[src]

This is used for authenticating the user. it calls the AuthenticationHelper for SRP related stuff @param {AuthenticationDetails} authDetails Contains the authentication data @param {object} callback Result callback map. @param {onFailure} callback.onFailure Called on any error. @param {newPasswordRequired} callback.newPasswordRequired new password and any required attributes are required to continue @param {mfaRequired} callback.mfaRequired MFA code required to continue. @param {customChallenge} callback.customChallenge Custom challenge response required to continue. @param {authSuccess} callback.onSuccess Called on success with the new session. @returns {void}