Home Reference Source
import AuthServiceProvider from '@osjs/client/src/providers/auth.js'
public class | source

AuthServiceProvider

Extends:

@osjs/common~ServiceProvider → AuthServiceProvider

OS.js Auth Service Provider

Creates the login prompt and handles authentication flow

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Method Summary

Public Methods
public
public

destroy(): *

Destroys authentication

public

Initializes authentication

public

Get a list of services this provider registers

Public Constructors

public constructor(core: Core, options: AuthServiceOptions) source

Params:

NameTypeAttributeDescription
core Core

OS.js Core

options AuthServiceOptions
  • optional
  • default: {}

Public Members

public auth: Auth source

Public Methods

public createAuthContract(): AuthProviderContract source

public destroy(): * source

Destroys authentication

Return:

*

public init(): Promise<undefined> source

Initializes authentication

Return:

Promise<undefined>

public provides(): string[] source

Get a list of services this provider registers

Return:

string[]