I want to make anonymous session at passportAdapter. For now, I can only return error or publicData to passport done callback.
But I just want to make anonymous session(private session).
Because I need to get user information after third party authorized. For example, when I try to implement "Login with blizzard account" I can use passport-bnet but, blizzard never give me the user's email. So I need to get email from use after blizzard authentication finished. So I try to set blizzard auth information to anonymous session. But for now, I can't put null to userId(if userId is null, I must give exception to callback first argument).
What do you want and why?
I want to make anonymous session at passportAdapter. For now, I can only return error or publicData to passport
done
callback. But I just want to make anonymous session(private session).Because I need to get user information after third party authorized. For example, when I try to implement "Login with blizzard account" I can use passport-bnet but, blizzard never give me the user's email. So I need to get email from use after blizzard authentication finished. So I try to set blizzard auth information to anonymous session. But for now, I can't put![image](https://user-images.githubusercontent.com/16463746/143732859-54a43ffc-ce81-4dc4-ba91-e46028667a3e.png)
null
touserId
(if userId is null, I must give exception to callback first argument).Possible implementation(s)
Make possible like this.
I think it must fix
VerifyCallbackResult
type.Additional context
I was talking about this at Discord. link