diff --git a/app.js b/app.js
index 4604401..1459861 100644
--- a/app.js
+++ b/app.js
@@ -66,7 +66,7 @@ const resolvers = {
// TODO: send magic link to user
const { _id, firstName, lastName } = userExists;
const activationToken = jwt.sign({ _id, firstName, lastName, email }, jwtSecret, { expiresIn: '1 days' });
- emailObj.html = `Welcome, click on below link to signin
Sign in`;
+ emailObj.html = `Welcome, click on below link to signin
Sign in`;
await sendEmailToUser(emailObj);
return userExists;
}
@@ -74,7 +74,7 @@ const resolvers = {
const user = await UserModel.create({ email });
const { _id, firstName, lastName, createdAt, updatedAt } = user;
const activationToken = jwt.sign({ _id, firstName, lastName, email, createdAt, updatedAt }, jwtSecret, { expiresIn: '1 days' });
- emailObj.html = `Welcome, Confirm your signup by clicking on below link
Confirm`;
+ emailObj.html = `Welcome, Confirm your signup by clicking on below link
Confirm`;
await sendEmailToUser(emailObj);
return user;
},
diff --git a/client/package.json b/client/package.json
index b7e89e0..3fcd541 100644
--- a/client/package.json
+++ b/client/package.json
@@ -1,6 +1,6 @@
{
"name": "magiclink-client",
- "version": "0.1.0",
+ "version": "1.0.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.14.1",
@@ -10,9 +10,7 @@
"graphql-request": "3.5.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
- "react-router-dom": "5.3.0",
"react-scripts": "4.0.3",
- "@supabase/supabase-js": "1.21.3",
"web-vitals": "^1.1.2"
},
"scripts": {
diff --git a/client/src/Account.js b/client/src/Account.js
index 4af79a6..b46d029 100644
--- a/client/src/Account.js
+++ b/client/src/Account.js
@@ -1,8 +1,7 @@
import { useState, useEffect } from 'react'
import { gql } from 'graphql-request';
-export default function Account(props) {
- const { client } = props;
+export default function Account({ client }) {
const [loading, setLoading] = useState(true)
const [user, setUser] = useState({ firstName: '', lastName: '', phone: '', email: '' });
@@ -17,9 +16,6 @@ export default function Account(props) {
}`;
useEffect(() => {
- const token = props.match.params.token;
- localStorage.setItem('TOKEN', token);
- client.setHeader('authorization', token ? `Bearer ${token}` : '');
getMyProfile();
}, []);
@@ -90,7 +86,7 @@ export default function Account(props) {