File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ export interface AppAuthInput {
2
+ scopes : string [ ] ;
3
+ issuer : string ;
4
+ clientId : string ;
5
+ redirectUrl : string ;
6
+ aditionalParameters ?: object ;
7
+ }
8
+
9
+ export interface AuthorizeResult {
10
+ accessToken : string ;
11
+ accessTokenExpirationDate : string ;
12
+ additionalParameters : object ;
13
+ idToken : string ;
14
+ refreshToken : string ;
15
+ tokenType : string ;
16
+ }
17
+
18
+ export function authorize ( properties : AppAuthInput ) : Promise < AuthorizeResult > ;
19
+
20
+ export function refresh (
21
+ properties : AppAuthInput ,
22
+ { refreshToken : string }
23
+ ) : Promise < AuthorizeResult > ;
24
+
25
+ export function revoke (
26
+ properties : AppAuthInput ,
27
+ { tokenToRevoke : string , sendClientId : boolean }
28
+ ) : Promise < void > ;
Original file line number Diff line number Diff line change 3
3
"version" : " 2.0.0" ,
4
4
"description" : " React Native bridge for AppAuth for supporting any OAuth 2 provider" ,
5
5
"main" : " index.js" ,
6
+ "types" : " index.d.ts" ,
6
7
"scripts" : {
7
8
"test" : " jest" ,
8
9
"lint" : " eslint ." ,
You can’t perform that action at this time.
0 commit comments