Skip to content

Commit 83cfcd5

Browse files
committed
feedback
1 parent 14d677c commit 83cfcd5

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111
- Added seperate page for signup. [#311](https://github.com/sourcebot-dev/sourcebot/pull/331)
12+
- Added encryption logic for license keys. [#335](https://github.com/sourcebot-dev/sourcebot/pull/335)
1213

1314
## [4.1.1] - 2025-06-03
1415

packages/crypto/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export function verifySignature(data: string, signature: string, publicKeyPath:
8080
publicKeyCache.set(publicKeyPath, publicKey);
8181
}
8282

83+
// Convert base64url signature to base64 if needed
8384
const base64Signature = signature.replace(/-/g, '+').replace(/_/g, '/');
8485
const paddedSignature = base64Signature + '='.repeat((4 - base64Signature.length % 4) % 4);
8586
const signatureBuffer = Buffer.from(paddedSignature, 'base64');

packages/web/src/env.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const env = createEnv({
5555

5656
DATA_CACHE_DIR: z.string(),
5757

58-
SOURCEBOT_PUBLIC_KEY_PATH: z.string().optional(),
58+
SOURCEBOT_PUBLIC_KEY_PATH: z.string(),
5959

6060
// Email
6161
SMTP_CONNECTION_URL: z.string().url().optional(),

0 commit comments

Comments
 (0)