Error when starting MSFS

All of a sudden getting this error when trying to start program, anyone else seeing this or know a fix?

Microsoft Flight Simulator is currently not available in your account. Make sure you are signed in to the Store and try again. Here’s the error code, in case you need it: 0x803F8001

are you logged in in your store account, do you still have an active XBox live account if you were using that?

Check your XBOX app and see if it’s logged into your account that you used to buy MSFS with (or if Steam, the XBOX account is correct).

Make sure all these apps are up to date from the MS Store.

If you are logged in, log out, then log back in.

Something must have happened when windows updated yesterday. I was logged in but took your suggestion and logged out and back in and it’s working now! Thanks for the quick replies.