Connect to a user's wallet

Use this method to authenticate users with Altura Guard II.

Usage in your script

const AlturaGuard = await altura.alturaGuard(GUARD_CODE);

Parameters

ParameterTypeRequiredDescription

GUARD_CODE

String

Yes

User entered Altura Guard code

You should store both the address and token in a database. The user can revoke this token at any point and so can the game. If you lose this token, you will not be able to create a new connection with the user unless they revoke the existing one.

Last updated