@amedia/user 0.14.82 → 0.14.83
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/user.d.ts +6 -2
- package/package.json +1 -1
package/dist/user.d.ts
CHANGED
|
@@ -98,13 +98,17 @@ declare class PaywallError extends Error {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
type Storage = Record<string, Record<string, string>>;
|
|
101
|
+
type LoginPageParams = {
|
|
102
|
+
requestedUrl?: string;
|
|
103
|
+
context?: string;
|
|
104
|
+
};
|
|
101
105
|
/**
|
|
102
106
|
* This will, if necessary, trigger a redirect to www.aid.no and return
|
|
103
107
|
* to the requestedUrl if supplied or the current url before redirecting away if not.
|
|
104
108
|
* @param requestedUrl
|
|
105
109
|
*/
|
|
106
|
-
declare const goToLoginPage: (
|
|
107
|
-
declare const getLoginUrl: (
|
|
110
|
+
declare const goToLoginPage: (requestedUrlOrParams?: string | LoginPageParams) => void;
|
|
111
|
+
declare const getLoginUrl: (requestedUrlOrParams?: string | LoginPageParams) => URL;
|
|
108
112
|
declare const logout: () => Promise<void>;
|
|
109
113
|
declare const updateStorage: (storage: Storage) => void;
|
|
110
114
|
declare const saveStorage: (storage: Storage) => void;
|
package/package.json
CHANGED