Even though I have a JWTAuthProvider setup, if a user creates their account via the Facebook provider, the JWT cookie is never set. What is the easiest way to get this cookie created without having to post it back to the convertsessiontocookie endpoint? Can I do that via a filter, something like (couldn’t quite get this to work on first pass)?
var session = req.GetSession();
if (session != null && !req.Cookies.Keys.Contains("ss-tok"))
{
// res.SetCookie("ss-tok", )
ConvertSessionToTokenResponse r = this.ExecuteService(new ConvertSessionToToken() { }); // this fails as it returns something else which does have the cookie..
}