mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-14 19:46:29 +08:00
13 lines
296 B
JavaScript
13 lines
296 B
JavaScript
const admin = require("firebase-admin");
|
|
|
|
module.exports = {
|
|
async verifyIdToken(idToken) {
|
|
return await admin.auth().verifyIdToken(idToken);
|
|
},
|
|
async updateAuthEmail(uid, email) {
|
|
return await admin.auth().updateUser(uid, {
|
|
email,
|
|
emailVerified: false,
|
|
});
|
|
},
|
|
};
|