-
Notifications
You must be signed in to change notification settings - Fork 462
Add typescript definition #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
b7bc24c
a283a69
0828ebc
41db15e
1ffebb7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| export interface AuthConfiguration extends BaseAuthConfiguration { | ||
| scopes: string[]; | ||
| redirectUrl: string; | ||
| aditionalParameters?: {[name: string]: any}; | ||
|
||
| } | ||
|
|
||
| export interface BaseAuthConfiguration{ | ||
|
||
| issuer: string; | ||
| clientId: string; | ||
| } | ||
|
|
||
| export interface RevokeConfiguration{ | ||
|
||
| clientId: string; | ||
| issuer: string; | ||
| } | ||
|
|
||
| export interface AuthorizeResult { | ||
| accessToken: string; | ||
| accessTokenExpirationDate: string; | ||
| aditionalParameters?: {[name: string]: any}; | ||
|
||
| idToken: string; | ||
| refreshToken: string; | ||
| tokenType: string; | ||
| } | ||
|
|
||
| export interface RevokeConfiguration { | ||
| tokenToRevoke: string; | ||
| sendClientId?: boolean; | ||
| } | ||
|
|
||
| export interface RefreshConfiguration { | ||
| refreshToken: string; | ||
| } | ||
|
|
||
| export function authorize(config: AuthConfiguration): Promise<AuthorizeResult>; | ||
|
|
||
| export function refresh(config: AuthConfiguration, refreshConfig: RefreshConfiguration): Promise<AuthorizeResult>; | ||
|
|
||
| export function revoke(config: BaseAuthConfiguration, refreshConfig: RevokeConfiguration): Promise<void>; | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit here, the indentation seems to be off