PrismarineJS / prismarine-web-client

Minecraft web client running in your browser
https://prismarinejs.github.io/prismarine-web-client/
MIT License
444 stars 144 forks source link

Login with Microsoft #354

Open lockieluke opened 11 months ago

lockieluke commented 11 months ago

How do you login with Microsoft, can't compile on the latest commit as I tried changing the authType to microsoft

zardoy commented 1 month ago

I tried changing the authType to Microsoft

Auth endpoints and mojang session server don't support CORS anyway, so it was a bit tricky, but the only solution was to make a proxy to support such requests like that:

image

btw I doubt that feature would be possible to implement on frontend without a new crypto API, it's so good to have it