@magda/authentication-plugin-sdk 2.0.0-alpha.6 → 2.0.0

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 (3) hide show
  1. package/dist/index.d.ts +3 -4
  2. package/dist/index.js +5011 -1703
  3. package/package.json +6 -6
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import AuthApiClient from '@magda/auth-api-client';
2
2
  import express from 'express';
3
3
  import passport from 'passport';
4
+ import { QueryDataMap } from 'urijs';
4
5
  import { Request as Request_2 } from 'express';
5
6
  import { Response as Response_2 } from 'express';
6
7
  import { Router } from 'express';
@@ -134,13 +135,11 @@ declare function destroySession_2(req: express.Request): Promise<void>;
134
135
  * @export
135
136
  * @param {string} url A full url string or a url path string (/a/b/c).
136
137
  * @param {string} baseUrl A baseUrl used to generate a full url when a url path string is supplied via the `url` parameter.
137
- * @param {{ [key: string]: string }} [optionalQueries]
138
+ * @param {QueryDataMap} [optionalQueries]
138
139
  * @param {string[]} [allowedUrlHosts] Optional; when specify, the host of `url` parameter will only be used if it is included by this list.
139
140
  * @returns
140
141
  */
141
- export declare function getAbsoluteUrl(url: string, baseUrl: string, optionalQueries?: {
142
- [key: string]: string;
143
- }, allowedUrlHosts?: string[]): string;
142
+ export declare function getAbsoluteUrl(url: string, baseUrl: string, optionalQueries?: QueryDataMap, allowedUrlHosts?: string[]): string;
144
143
 
145
144
  export declare function getSessionId(req: express.Request, secret?: string): string;
146
145