Experimental port to Firebase hosting
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
const AuthAPI = require('../AuthAPI');
|
||||
import { createToken } from '../utils/auth';
|
||||
|
||||
const defaultScopes = {
|
||||
blacklist: {
|
||||
@ -6,8 +6,8 @@ const defaultScopes = {
|
||||
}
|
||||
};
|
||||
|
||||
function createAuth(req, res) {
|
||||
AuthAPI.createToken(defaultScopes).then(
|
||||
export default function createAuth(req, res) {
|
||||
createToken(defaultScopes).then(
|
||||
token => {
|
||||
res.send({ token });
|
||||
},
|
||||
@ -20,5 +20,3 @@ function createAuth(req, res) {
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = createAuth;
|
||||
|
||||
Reference in New Issue
Block a user