Closed cschleiden closed 5 years ago
If you call any of the synchronous methods like getUser before the initial handshake has completed (i.e. in a ready callback) then you'll get undefined. I'm thinking to explicitly throw in that case, then we can leave the more strict typing (no undefined). That should make it easier to consume.
I agree, that sounds easier to consume.
Fixed in 2.0.2
Why does this return
IUserContext | undefined
? Shouldn't we always have a user?