Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • AnonymousCredential

Implements

Index

Constructors

constructor

Properties

material

material: object

The contents of this credential as they will be passed to the Stitch server.

Type declaration

providerCapabilities

providerCapabilities: ProviderCapabilities = new ProviderCapabilities(true)

The behavior of this credential when logging in.

providerName

providerName: string

The name of the provider for this credential.

providerType

providerType: string = AnonymousAuthProvider.TYPE

The type of the provider for this credential.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc