@crossauth/sveltekit 1.1.7 → 1.1.8
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.
- package/dist/sveltekitapikey.js +2 -2
- package/package.json +3 -3
package/dist/sveltekitapikey.js
CHANGED
|
@@ -45,7 +45,7 @@ export class SvelteKitApiKeyServer {
|
|
|
45
45
|
const key = await this.apiKeyManager.validateToken(authzHeader);
|
|
46
46
|
CrossauthLogger.logger.debug(j({
|
|
47
47
|
msg: "Valid API key",
|
|
48
|
-
|
|
48
|
+
hashedApiKey: ApiKeyManager.hashSignedApiKeyValue(key.value)
|
|
49
49
|
}));
|
|
50
50
|
const data = KeyStorage.decodeData(key.data);
|
|
51
51
|
event.locals.apiKey = { ...key, ...data };
|
|
@@ -62,7 +62,7 @@ export class SvelteKitApiKeyServer {
|
|
|
62
62
|
const { user } = await this.userStorage.getUserById(key.userid);
|
|
63
63
|
event.locals.user = user;
|
|
64
64
|
event.locals.authType = "apiKey";
|
|
65
|
-
CrossauthLogger.logger.debug(j({ msg: "API key is for user", userid: user.id, user: user.username,
|
|
65
|
+
CrossauthLogger.logger.debug(j({ msg: "API key is for user", userid: user.id, user: user.username, hashedApiKey: ApiKeyManager.hashSignedApiKeyValue(key.value) }));
|
|
66
66
|
}
|
|
67
67
|
catch (e2) {
|
|
68
68
|
CrossauthLogger.logger.error(j({ msg: "API key has invalid user", userid: key.userid, hashedApiKey: ApiKeyManager.hashSignedApiKeyValue(key.value) }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossauth/sveltekit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Sveltekit adapter for Crossauth authentication package",
|
|
6
6
|
"private": false,
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"minimatch": "^10.0.1",
|
|
55
55
|
"publint": "0.3.15",
|
|
56
56
|
"qrcode": "^1.5.4",
|
|
57
|
-
"@crossauth/backend": "^1.1.
|
|
58
|
-
"@crossauth/common": "^1.1.
|
|
57
|
+
"@crossauth/backend": "^1.1.8",
|
|
58
|
+
"@crossauth/common": "^1.1.8"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"preparex": "svelte-kit sync",
|