@@ -63,8 +63,8 @@ class Login extends Component {
63
63
password,
64
64
} ,
65
65
} )
66
- const { user , token } = result . data . login
67
- this . _saveUserData ( user . id , token )
66
+ const { token } = result . data . login
67
+ this . _saveUserData ( token )
68
68
} else {
69
69
const result = await this . props . signupMutation ( {
70
70
variables : {
@@ -73,8 +73,8 @@ class Login extends Component {
73
73
password,
74
74
} ,
75
75
} )
76
- const { user , token } = result . data . signup
77
- this . _saveUserData ( user . id , token )
76
+ const { token } = result . data . signup
77
+ this . _saveUserData ( token )
78
78
}
79
79
this . props . history . push ( `/` )
80
80
}
@@ -87,9 +87,6 @@ class Login extends Component {
87
87
const SIGNUP_MUTATION = gql `
88
88
mutation SignupMutation($email: String!, $password: String!, $name: String!) {
89
89
signup(email: $email, password: $password, name: $name) {
90
- user {
91
- id
92
- }
93
90
token
94
91
}
95
92
}
@@ -98,9 +95,6 @@ const SIGNUP_MUTATION = gql`
98
95
const LOGIN_MUTATION = gql `
99
96
mutation LoginMutation($email: String!, $password: String!) {
100
97
login(email: $email, password: $password) {
101
- user {
102
- id
103
- }
104
98
token
105
99
}
106
100
}
0 commit comments