File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 1+ import Vue from 'vue'
12import type { AxiosRequestConfig , AxiosResponse } from 'axios'
23import _Auth from './core/auth'
34import _Scheme from './schemes/_scheme'
@@ -9,14 +10,6 @@ export { AxiosRequestConfig as HTTPRequest }
910export { AxiosResponse as HTTPResponse }
1011
1112export type Auth = _Auth
12- export type Scheme = _Scheme < SchemeOptions | any > & {
13- token ?: Token ,
14- refreshToken ?: RefreshToken
15- requestHandler ?: RequestHandler
16- refreshTokens ?: Function
17- check ?: ( checkStatus : boolean ) => SchemeCheck
18- reset ?: Function
19- }
2013
2114export type SchemeOptions = {
2215 name : string ,
@@ -30,6 +23,15 @@ export type SchemeCheck = {
3023 isRefreshable ?: boolean
3124}
3225
26+ export type Scheme = _Scheme < SchemeOptions | any > & {
27+ token ?: Token ,
28+ refreshToken ?: RefreshToken
29+ requestHandler ?: RequestHandler
30+ refreshTokens ?: Function
31+ check ?: ( checkStatus : boolean ) => SchemeCheck
32+ reset ?: Function
33+ }
34+
3335export type AuthOptions = {
3436 resetOnError : boolean | Function
3537 defaultStrategy : string
You can’t perform that action at this time.
0 commit comments