@lokalise/harmony 1.6.0-exp-jwtutils.6 → 1.6.0-exp-jwtutils.7
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.
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Wretch, WretchAddon } from 'wretch/types';
|
2
2
|
import { JwtAuthProps } from './middleware/jwtAuthMiddleware';
|
3
|
-
export interface
|
4
|
-
lokaliseAuth<T extends
|
3
|
+
export interface LokaliseAuthAddon {
|
4
|
+
lokaliseAuth<T extends LokaliseAuthAddon>(this: T & Wretch<T>, props: JwtAuthProps): this;
|
5
5
|
}
|
6
|
-
export declare const LokaliseAuthAddon: WretchAddon<
|
6
|
+
export declare const LokaliseAuthAddon: WretchAddon<LokaliseAuthAddon>;
|
@@ -20,9 +20,9 @@ type BrowserPromoteAuthProps = Omit<PromoteAuthProps, 'getCachedJwtToken' | 'get
|
|
20
20
|
*/
|
21
21
|
getCsrfToken?: PromoteAuthProps['getCsrfToken'];
|
22
22
|
};
|
23
|
-
export interface
|
24
|
-
lokaliseAuth<T extends
|
25
|
-
promoteClassicSession<T extends
|
23
|
+
export interface LokaliseAuthBrowserAddon {
|
24
|
+
lokaliseAuth<T extends LokaliseAuthBrowserAddon>(this: T & Wretch<T>, props?: BrowserJwtAuthProps): this;
|
25
|
+
promoteClassicSession<T extends LokaliseAuthBrowserAddon>(this: T & Wretch<T>, props: BrowserPromoteAuthProps): this;
|
26
26
|
}
|
27
|
-
export declare const LokaliseAuthBrowserAddon: WretchAddon<
|
27
|
+
export declare const LokaliseAuthBrowserAddon: WretchAddon<LokaliseAuthBrowserAddon>;
|
28
28
|
export {};
|