@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.
Files changed (2) hide show
  1. package/dist/user.d.ts +6 -2
  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: (requestedUrl?: string) => void;
107
- declare const getLoginUrl: (requestedUrl?: string) => URL;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amedia/user",
3
- "version": "0.14.82",
3
+ "version": "0.14.83",
4
4
  "description": "Client lib for working with aID user and associated data",
5
5
  "repository": "https://github.com/amedia/amedia-user-js",
6
6
  "author": "Amedia Utvikling (ID og data)",