Verify a User's Altura Guard Code

Use this method to authenticate users with Altura Guard.

Usage in your script

AuthenticateUser
  .Initialize(destroyAtEnd: true)
  .SetParams(
    "0x85d...",
    "1d47s"
  )
  .OnError(error => Debug.Log(error))
  .OnComplete(AlturaGuard => Debug.Log(AlturaGuard.authenticated))
  .Run();

Member Functions

.Initialize()

ParameterTypeRequiredDescription

destroyAtEnd

bool

Optional

defines if this component will be destroyed after .Run()

.SetParameters()

ParameterTypeRequiredDescription

wallet_address

String

Yes

Unique wallet address of user

altura_guard

String

Yes

Altura Guard code.

.onError()

Action on Error: returns error information.

.onComplete()

Action on successful: returns Auth_model type.

.Run()

Runs the API call and fills the corresponding model in the component on success.

Last updated