Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
passes email and password to authenticate
Browse files Browse the repository at this point in the history
allows user to create and account or authorize an existing one
  • Loading branch information
mobyjames committed Jun 7, 2019
1 parent 1e05a8d commit a228f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions express/index.ts
Expand Up @@ -51,9 +51,9 @@ connectDatabase();
const auth = express.Router();
auth.post("/", async (req, res) => {
tryOrErr(res, async () => {
const { accessToken, deviceId, platform, token } = req.query;
const { accessToken, deviceId, platform, token, email, password } = req.query;

const user = await authenticate({ accessToken, deviceId, platform, token });
const user = await authenticate({ accessToken, deviceId, platform, token, email, password });
if (deviceId && platform) {
await assignDeviceToUser(user, deviceId, platform);
}
Expand Down

0 comments on commit a228f12

Please sign in to comment.