You've already forked joplin
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:
committed by
GitHub
parent
e3efe70bab
commit
2fc9c53ff0
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user