Task<JwtSecurityToken> GenerateIdentityTokenAsync(object userData) | Asks the API to sign an identity token holding the given user data. |
Task<IPAddress> GetPublicIpAddressAsync() | Asks the API for this machine's public IP. Awaited while a local server starts, so a dead API delays startup. |
Task<bool> IsValidShortLivedIdentityTokenAsync(JwtSecurityToken token) | Asks the API whether a short-lived identity token is valid. The server's join check uses it. |
Task RequestPasswordResetAsync(string email) | Sends a password reset email. |
Task RequestSignUpCodeAsync(string firstName, string lastName, string email, string referral, string campaign) | Obsolete: asks for a sign-up code for a name and email. |
Task ResetPasswordAsync(int userId, string newPasswordHash, string resetToken) | Sets a new password hash using a reset token. |
Task VerifyUserAsync(int userIdentifier, string verificationToken) | Verifies a user's email with a verification token. |