mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
pad_utils: Factor out author token generation
This commit is contained in:
parent
4e1674ceaf
commit
8053875d45
4 changed files with 10 additions and 3 deletions
|
@ -327,6 +327,12 @@ const padutils = {
|
|||
return cc;
|
||||
}
|
||||
}),
|
||||
|
||||
/**
|
||||
* Returns a string that can be used in the `token` cookie as a secret that authenticates a
|
||||
* particular author.
|
||||
*/
|
||||
generateAuthorToken: () => `t.${randomString()}`,
|
||||
};
|
||||
|
||||
let globalExceptionHandler = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue