Add Anonymous Users
Allow guest users to use your apps and website and promote to regular users later.
Overview
Enable Anonymous Users for your project
Using the SDK
Sign up as an Anonymous User
authgear
.authenticateAnonymously()
.then(({userInfo}) => {
// Logged in as anonymous user successfully
})
.catch((err) => {
// Handle the error
});try {
final userInfo = await authgear.authenticateAnonymously();
// Logged in as anonymous user successfully
} catch (e) {
// Handle the error
}authgear.authenticateAnonymously { result in
switch result {
case let .success(userInfo):
// Logged in as anonymous user successfully
case let .failure(error):
// Handle the error
}
}Check the UserInfo object
Promotion of an Anonymous User
User Lifetime
Mobile apps
Web apps and websites
Caution for high-traffic websites
Last updated
Was this helpful?