Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OauthClient<K>

oauth授权回调页面参数处理 浏览器端才能用

Type parameters

  • K: string = "code" | "state"

Hierarchy

  • OauthClient

Index

Constructors

constructor

Properties

Private Readonly _qsParseArgs

_qsParseArgs: ParseOptions

Private Readonly _qsStringifyArgs

_qsStringifyArgs: StringifyOptions

consumerKeys

consumerKeys: K[]

Optional mode

mode: "hash" | "history"

url

url: URL

Accessors

Private hasAuthParams

  • get hasAuthParams(): boolean

hashQuery

isHashMode

  • get isHashMode(): boolean

isHistoryMode

  • get isHistoryMode(): boolean

originalUrl

  • get originalUrl(): string

query

searchQuery

Methods

Private _parse

Private _stringify

  • _stringify(obj: any): string

filterConsumerKeys

getAuthParams

  • getAuthParams(): undefined | ParamsObject<K>

getOriginalUrl

  • getOriginalUrl(uri: string | URL): string

setUrl