Skip to content

Guides

Contributors

Each guide covers one flow end to end. Start with sign-in; the rest can be read in any order as you need them.

  • Sign-in and tokens covers interactive sign-in, silent refresh, sign-out, and handing the ID token to a backend.
  • Native sign-in covers signing in without Microsoft’s web UI, including MFA and just-in-time registration of a strong authentication method.
  • Native sign-up covers creating accounts in-app.
  • Password reset covers self-service password reset for local accounts.
  • User profile covers reading and editing the signed-in user’s profile through Microsoft Graph.
  • Sign-in history covers reading the user’s own recent sign-ins.
  • SwiftUI views covers the drop-in account screen and the composable views behind it.

Interactive sign-in unless you have a specific reason not to. It needs the least tenant configuration, and it is the only one that supports federated providers such as Apple, Google and Microsoft.

Reach for native authentication when you need the sign-in experience to stay inside your app, when you need in-app sign-up, or when you need self-service password reset. The cost is that your app renders every screen in the flow and handles every branch the service can return.