mirror of
https://github.com/SileNce5k/discord_bot_mgmt.git
synced 2025-04-19 11:08:26 +02:00
parent
b08c811faa
commit
7b35e1e2b5
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ function verifyAuthToken(authToken){
|
|||
}
|
||||
if(!authenticatedUser) return false;
|
||||
if(authenticatedUser.token !== authToken) return false;
|
||||
if(authenticatedUser.expires_at <= new Date().valueOf()) return false;
|
||||
return authenticatedUser;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue