@spacehq/sdk > Users > authenticate
Users.authenticate() method
Authenticates the random keypair identity against the hub. Generating an appToken API Session token.
If authentication succeeds, a SpaceUser object that can be used with the UserStorage class is returned.
Signature:
authenticate(identity: Identity): Promise<SpaceUser>;
Parameters
Parameter | Type | Description |
---|---|---|
identity | Identity | User identity |
Returns:
Promise<SpaceUser>