auth-vir 2.4.0 → 2.4.1
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.
|
@@ -162,9 +162,10 @@ export declare class BackendAuthClient<DatabaseUser extends AnyObject, UserId ex
|
|
|
162
162
|
*/
|
|
163
163
|
getJwtParams(): Promise<Readonly<CreateJwtParams>>;
|
|
164
164
|
/** Use these headers to log out the user. */
|
|
165
|
-
createLogoutHeaders(params: RequireExactlyOne<{
|
|
165
|
+
createLogoutHeaders(params: Readonly<RequireExactlyOne<{
|
|
166
166
|
allCookies: true;
|
|
167
167
|
isSignUpCookie: boolean;
|
|
168
|
+
}> & {
|
|
168
169
|
/** Overrides the client's already established `serviceOrigin`. */
|
|
169
170
|
serviceOrigin?: string | undefined;
|
|
170
171
|
}>): Promise<Partial<Record<CsrfHeaderName, string>> & {
|
package/package.json
CHANGED
|
@@ -381,12 +381,15 @@ export class BackendAuthClient<
|
|
|
381
381
|
|
|
382
382
|
/** Use these headers to log out the user. */
|
|
383
383
|
public async createLogoutHeaders(
|
|
384
|
-
params:
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
384
|
+
params: Readonly<
|
|
385
|
+
RequireExactlyOne<{
|
|
386
|
+
allCookies: true;
|
|
387
|
+
isSignUpCookie: boolean;
|
|
388
|
+
}> & {
|
|
389
|
+
/** Overrides the client's already established `serviceOrigin`. */
|
|
390
|
+
serviceOrigin?: string | undefined;
|
|
391
|
+
}
|
|
392
|
+
>,
|
|
390
393
|
): Promise<
|
|
391
394
|
Partial<Record<CsrfHeaderName, string>> & {
|
|
392
395
|
'set-cookie': string[];
|