📝 Installed alacritty and codium
This commit is contained in:
parent
077f356bc1
commit
423aa812e9
1488 changed files with 5573 additions and 0 deletions
28
.config/VSCodium/User/History/c8311b6/1SRL.js
Normal file
28
.config/VSCodium/User/History/c8311b6/1SRL.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import { db } from '../utils/db.js'
|
||||
|
||||
class Authenticator {
|
||||
constructor() {
|
||||
this.currentUser = null
|
||||
}
|
||||
async sendAuthEmail(answered) {
|
||||
return await db.post('/user/sendemail/', answered)
|
||||
}
|
||||
async verifyAuthSession(hashedToken) {
|
||||
return await db.get(`/user/verify/${hashedToken}`)
|
||||
}
|
||||
async getAccessToken(req) {
|
||||
return await db.post('/user/getaccess', req, true)
|
||||
}
|
||||
async validateSession(hashedAccessToken) {
|
||||
return await db.post('/user/validatesession', hashedAccessToken, true)
|
||||
}
|
||||
async authenticateLoginCredentials(credentials) {
|
||||
return await db.post('/user/login', credentials)
|
||||
}
|
||||
async removeSession(hashedAccessToken) {
|
||||
return await db.post('/user/removesession', hashedAccessToken, true)
|
||||
}
|
||||
}
|
||||
const authenticator = new Authenticator()
|
||||
|
||||
export { authenticator, Authenticator }
|
||||
Loading…
Add table
Add a link
Reference in a new issue