We are using ThirdPartyEmailPassword and Email Ver...
# support-questions-legacy
p
We are using ThirdPartyEmailPassword and Email Verification recipes together. We need Email Verification only for Email Password users and not for social users. But When we Try to use "@verifySession" annotation in the backend in case of social login. It is considering it as invalid session. and giving an error like this : { "message": "invalid claim", "claimValidationErrors": [ { "id": "st-ev", "reason": { "message": "wrong value", "expectedValue": true, "actualValue": false } } ] } Can anyone please let us know what to do in this case?
r
Hey @phoenix1413.
This social login provider doesnt give the email verification status?
p
No @rp_st they are staying as not email verified somehow
r
Right. So wouldn’t you want to verify the user’s email in that case?
n
@rp_st he is unable to send the verification email also, for unverified sso users
getting a 404 error in that too
r
Which api gives 404?
p
No @rp_st
They are logging in from social accounts which are already legit so we don't need to verify them.
And we just found out it's automatically verifying for Google accounts but not verifying for azure ad accounts
It's not 404, it's 405 method not allowed
r
You can override the azure provider’s getUserInfo function to set email verified to true. This way, it will behave like google login
p
Ok @rp_st , we'll try that. Thank you so much 😊
@rp_st , what might be the reason that verification emails are not being sent if the user logged in with social accounts. And from super tokens dashboard also, we're unable to make the user verified. When we try to make them verify from the dashboard, dashboard is throwing an error
r
is there any backend error stack? It may be a bug
and what is the network request status code?
p
405 method not allowed
r
can you show me the network tab?
p
Sure
r
can you enable backend debug logs of supertokens when this API is called?
and show me the output
p
sure
r
these aren't supertokens logs. Can you enable those and show me the output?
see the debugging section in our docs
p
ok @rp_st . Will provide it.
4 Views