Skip to content

v4.12.1

Compare
Choose a tag to compare
@0xFirekeeper 0xFirekeeper released this 17 Apr 23:37
869df33

What's Changed

  • [Cross-Platform] Added Wallet.AuthenticateAndLoginServerSide that helps you use thirdweb Auth more easily, cross-platform.
    • Previously, Wallet.Authenticate mostly acted as a signed payload generator rather than a full authentication flow, and stored a local SIWE style session. You had to do the extra work of serializing, encoding and logging in to your backend as an extra step.
    • You may use this helper method instead if you have thirdweb Auth setup on your backend, passing in your domain and chain id, to replicate a full login flow without having to deal with payloads, encoding or signing/verifying.
    • Defaults to calling /auth/payload and /auth/login, overrideable.
    • Works with Smart Wallets.
    • Uses UnityWebRequest, meaning it's WebGL compatible, however make sure CORS is setup correctly to test in WebGL as usual.