You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can work around this by using the session ID to get the user's login and then getting the user from there, but this doesn't seem ideal. Specifically, this works for me in plugins/session.ts's setSessionState function:
Describe the bug A clear and concise description of what the bug is.
When I create or delete a subscription, I sometimes need to logout and log back in before the subscription will take effect.
To Reproduce Steps to reproduce the behavior:
/account
page and see that the subscription has not updated./account
, and see that your subscription has updated.Sometimes, you'll not see the subscription being upgraded. I'm not sure why it's only sometimes.
The same thing occurs for me when I cancel a subscription. I also need to log out and in to see the change reflected.
Expected behavior A clear and concise description of what you expected to
happen.
I expect the subscription status to be updated.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
I added logging statements in
routes/api/stripe-webhooks.ts
andplugins/session.ts
to see what's going on.It seems that the session ID is different. I suspect the request has the old session ID.
I can work around this by using the session ID to get the user's login and then getting the user from there, but this doesn't seem ideal. Specifically, this works for me in
plugins/session.ts
'ssetSessionState
function:It is definitely possible that I'm doing something wrong here. I've tried to start fresh with a new database and stripe init.
The text was updated successfully, but these errors were encountered: