backend-common: remove 'Server' from TokenManager method names

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
Mike Lewis
2021-11-23 18:12:28 +00:00
parent 905dd952ac
commit 4b6de2f872
9 changed files with 35 additions and 36 deletions
+2 -3
View File
@@ -95,8 +95,7 @@ async function main() {
req.cookies['token'];
// Authenticate all requests originating from backends by default
const isValidServerToken =
authEnv.tokenManager.validateServerToken(token);
const isValidServerToken = authEnv.tokenManager.validateToken(token);
if (!isValidServerToken) {
req.user = await identity.authenticate(token);
}
@@ -327,5 +326,5 @@ function makeCreateEnv(config: Config) {
With this `tokenManager`, you can then generate a server token for requests:
```
const { token } = await this.tokenManager.getServerToken();
const { token } = await this.tokenManager.getToken();
```