We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd402b9 commit dba95d4Copy full SHA for dba95d4
src/shared/identityUtils.ts
@@ -21,9 +21,9 @@ class LwrConfigFile {
21
// **********************************************************************************************
22
export class IdentityUtils {
23
public static async updateServerConfigFileWithIdentityToken(byteSize = 32): Promise<void> {
24
- const config = await DevServerUtils.fetchServerConfigFileContent() as LwrConfigFile;
+ const config = (await DevServerUtils.fetchServerConfigFileContent()) as LwrConfigFile;
25
if (config && !config.identityToken) {
26
- config.identityToken = randomBytes(byteSize).toString();
+ config.identityToken = randomBytes(byteSize).toString('hex');
27
await DevServerUtils.writeServerConfigFileContent(config);
28
}
29
0 commit comments