SignInWithMicrosoft
A login button block that redirects to Microsoft SSO. Wired up to the useAccAuth composable so it works out of the box — just drop it on your login page.
Install
Run the following command to install the Microsoft login block:
npx acc-nuxt add SignInWithMicrosoftPreview
Authentication
This block works automatically with the useAccAuth composable. On click it calls signInWithMicrosoft and redirects the browser to the Microsoft authorize URL. After the provider logs the user in, the backend redirects to the fixed server route /acc/auth/sso/callback which exchanges the code, creates a session, and redirects the user back — no extra wiring required.
Error handling
If the authorize request fails, the error is shown inline below the button. If the callback exchange fails (e.g. the provider identity is already linked to another user), the page is reloaded with ?sso-error=ERROR_CODE — see SSO error handling in the useAccAuth docs for the full list of error codes.