@smart100/spu-web-plugin 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -0
- package/dist/spu-web-plugin.mjs +467 -362
- package/package.json +1 -1
- package/src/axios.ts +30 -0
- package/src/core.js +18 -4
- package/src/index.ts +8 -2
- package/src/login.ts +100 -28
- package/src/types/index.d.ts +3 -0
- package/src/types/shims-lib.d.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -137,6 +137,9 @@ export const updateToken: () => Promise<void>
|
|
|
137
137
|
export const getToken: () => string
|
|
138
138
|
export const getTokenExpires: () => string
|
|
139
139
|
export const getRefreshToken: () => string
|
|
140
|
+
export const setToken: (value: string) => void
|
|
141
|
+
export const setTokenExpires: (value: string) => void
|
|
142
|
+
export const setRefreshToken: (value: string) => void
|
|
140
143
|
export const getUser: (key?: string) => any
|
|
141
144
|
export const checkLogin: () => boolean
|
|
142
145
|
export const Module: any
|