In the FAQ there is these code examples:

  • PHP example that shows how to create a new BankID login session and autostart the BankID app on the local device.
  • C# example Demo of Swedish BankID Auth / Sign with the Server-to-Server API