1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Desktop: Add an option to renew the API token (#4811)

This commit is contained in:
Helmut K. C. Tessarek
2021-04-07 14:27:16 -04:00
committed by GitHub
parent e3efe70bab
commit 2fc9c53ff0
3 changed files with 26 additions and 2 deletions

View File

@@ -776,7 +776,7 @@ export default class BaseApplication {
if (!Setting.value('api.token')) {
void EncryptionService.instance()
.randomHexString(64)
.generateApiToken()
.then((token: string) => {
Setting.setValue('api.token', token);
});