The AnonymousCredential is a StitchCredential that logs in using the Anonymous Authentication Provider.
// Previously: // const stitchAppClient = Stitch.initializeDefaultAppClient('your-stitch-app-id') // Log in with anonymous credential stitchAppClient.auth .loginWithCredential(new AnonymousCredential()) .then((user) => { console.log(`Logged in as anonymous user with id: ${user.id}`) }) .catch(console.error)
The contents of this credential as they will be passed to the Stitch server.
The behavior of this credential when logging in.
The name of the provider for this credential.
The type of the provider for this credential.
Generated using TypeDoc
AnonymousCredential
The AnonymousCredential is a StitchCredential that logs in using the Anonymous Authentication Provider.
Example
// Previously: // const stitchAppClient = Stitch.initializeDefaultAppClient('your-stitch-app-id') // Log in with anonymous credential stitchAppClient.auth .loginWithCredential(new AnonymousCredential()) .then((user) => { console.log(`Logged in as anonymous user with id: ${user.id}`) }) .catch(console.error)
See Also