summaryrefslogtreecommitdiff
path: root/src/api/endpoints
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints')
-rw-r--r--src/api/endpoints/auth/accept.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/endpoints/auth/accept.js b/src/api/endpoints/auth/accept.js
index 90e6614514..04927ae50e 100644
--- a/src/api/endpoints/auth/accept.js
+++ b/src/api/endpoints/auth/accept.js
@@ -72,9 +72,9 @@ module.exports = (params, user) =>
});
// Generate Hash
- const sha512 = crypto.createHash('sha512');
- sha512.update(token + app.secret);
- const hash = sha512.digest('hex');
+ const sha256 = crypto.createHash('sha256');
+ sha256.update(token + app.secret);
+ const hash = sha256.digest('hex');
// Insert access token doc
await AccessToken.insert({