Skip to content

Commit e4501ec

Browse files
fix: wrong type in encrypted session (#185)
1 parent 910ff53 commit e4501ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/encrypted-session.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function createStore(request) {
6666
if (!userEncryptionKey) {
6767
request.log.info({ plugin: 'encrypted-session' }, 'user-side encryption key not found, creating new one');
6868

69-
userEncryptionKey = generateSecureEncryptionKey();
69+
userEncryptionKey = generateSecureEncryptionKey().toString('base64');
7070
setUserEncryptionKeyIntoUserCookie(request, userEncryptionKey);
7171
}
7272

0 commit comments

Comments
 (0)