Skip to content

Commit 6b98bde

Browse files
committed
formatting
1 parent 207dfad commit 6b98bde

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/core/AuthKitCore.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ export class AuthKitCore {
3030
private encryption: SessionEncryption;
3131
private clientId: string;
3232

33-
constructor(config: AuthKitConfig, client: WorkOS, encryption: SessionEncryption) {
33+
constructor(
34+
config: AuthKitConfig,
35+
client: WorkOS,
36+
encryption: SessionEncryption,
37+
) {
3438
this.config = config;
3539
this.client = client;
3640
this.encryption = encryption;

src/core/session/CookieSessionStorage.spec.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { CookieSessionStorage } from './CookieSessionStorage.js';
22
import type { AuthKitConfig } from '../config/types.js';
33

44
// Mock config
5-
const createMockConfig = (overrides: Partial<AuthKitConfig> = {}): AuthKitConfig => ({
5+
const createMockConfig = (
6+
overrides: Partial<AuthKitConfig> = {},
7+
): AuthKitConfig => ({
68
clientId: 'test-client-id',
79
apiKey: 'test-api-key',
810
redirectUri: 'https://example.com/callback',
@@ -53,14 +55,18 @@ describe('CookieSessionStorage', () => {
5355
});
5456

5557
it('infers secure=false from http redirectUri', () => {
56-
const config = createMockConfig({ redirectUri: 'http://localhost:3000/callback' });
58+
const config = createMockConfig({
59+
redirectUri: 'http://localhost:3000/callback',
60+
});
5761
const storage = new TestCookieSessionStorage(config);
5862

5963
expect(storage['cookieOptions'].secure).toBe(false);
6064
});
6165

6266
it('infers secure=true from https redirectUri', () => {
63-
const config = createMockConfig({ redirectUri: 'https://example.com/callback' });
67+
const config = createMockConfig({
68+
redirectUri: 'https://example.com/callback',
69+
});
6470
const storage = new TestCookieSessionStorage(config);
6571

6672
expect(storage['cookieOptions'].secure).toBe(true);

0 commit comments

Comments
 (0)