Skip to main content

AccountsOauth <CustomUser>

Implements

  • unknown<CustomUser>

Index

Constructors

constructor

  • Type parameters

    • CustomUser: User = User

    Parameters

    Returns AccountsOauth<CustomUser>

Properties

publiccontext

context: ExecutionContext

publicoauthProviders

oauthProviders: OAuthProviders

publicserver

server: AccountsServer

publicserviceName

serviceName: string = 'oauth'

Methods

publicauthenticate

  • authenticate(params: any): Promise<null | CustomUser>
  • Parameters

    • params: any

    Returns Promise<null | CustomUser>

publicgetOAuthProviders

publicsetSessionsStore

  • setSessionsStore(): void
  • Returns void

publicsetUserStore

  • setUserStore(store: DatabaseInterfaceUser<CustomUser>): void
  • Parameters

    • store: DatabaseInterfaceUser<CustomUser>

    Returns void

publicunlink

  • unlink(userId: string, provider: string): Promise<void>
  • Parameters

    • userId: string
    • provider: string

    Returns Promise<void>