Skip to content

Commit dba95d4

Browse files
committed
chore: hex
1 parent dd402b9 commit dba95d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared/identityUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class LwrConfigFile {
2121
// **********************************************************************************************
2222
export class IdentityUtils {
2323
public static async updateServerConfigFileWithIdentityToken(byteSize = 32): Promise<void> {
24-
const config = await DevServerUtils.fetchServerConfigFileContent() as LwrConfigFile;
24+
const config = (await DevServerUtils.fetchServerConfigFileContent()) as LwrConfigFile;
2525
if (config && !config.identityToken) {
26-
config.identityToken = randomBytes(byteSize).toString();
26+
config.identityToken = randomBytes(byteSize).toString('hex');
2727
await DevServerUtils.writeServerConfigFileContent(config);
2828
}
2929
}

0 commit comments

Comments
 (0)