NewThe @strave/auth package is out

Login with Strave.Know every Siege player.

Add one button to your Rainbow Six Siege app. One sign-in gives you the player's Ubisoft account, the Siege profiles on PC and console, and the linked Discord account.

on every plan
Free
API calls for the identity
0
Siege profiles
PC + console
consent by the player
Per scope
Strave consent screen for an app that asks for the Siege identity

Authorize Scrim Finder

scrimfinder.gg

This application is requesting:

  • See your profile

    Read your name and profile picture.

  • See your Siege accounts

    Read the Ubisoft accounts and Siege profiles that you linked on Strave, with names and platforms.

  • See your Discord account

    Read the ID of the Discord account that you linked on Strave.

GET /api/auth/oauth2/userinfo
{
  "sub": "j97a2kq8m4n5p6r7s8t9v0w1",
  "name": "Gonzo",
  "siege": {
    "primary_platform": "pc",
    "profiles": [
      {
        "platform": "pc",
        "profile_id": "e3d5b7a9-1c2e-4f6a-8b0d-2e4f6a8c0e1f",
        "ubisoft_user_id": "e3d5b7a9-1c2e-4f6a-8b0d-2e4f6a8c0e1f",
        "name": "GNZO.strave",
        "linked_at": 1761000000,
        "verification": "claimed"
      },
      {
        "platform": "console",
        "profile_id": "9a1c4f2e-7b3d-4e8a-9c6f-1d2e3f4a5b6c",
        "ubisoft_user_id": "e3d5b7a9-1c2e-4f6a-8b0d-2e4f6a8c0e1f",
        "name": "Gonzo-eLevate",
        "linked_at": 1762000000,
        "verification": "claimed"
      }
    ]
  },
  "discord": { "id": "238472916384729163" }
}
The identity

Skip the "enter your Ubisoft name" form.

Players link their Ubisoft and Discord accounts on Strave once. Every app that uses Login with Strave gets the same data, with the player's consent. You don't call the API for it, and it doesn't count against a quota.

  • siege

    The Ubisoft account

    The Ubisoft account ID that owns each profile. Use it to find the player on stats sites and in your own data.

  • siege

    Profiles on PC and console

    One profile per platform, with its ID, its current name, and the platform that the player shows on Strave.

  • discord

    The Discord account

    The ID of the linked Discord account. Give roles in your server or match players to Discord messages.

  • userinfo

    Always current

    The userinfo endpoint reads the live data. Renames and new links show up at once, without a new sign-in.

Setup

Live in five minutes.

Login with Strave is standard OpenID Connect. The @strave/auth package makes it shorter for Better Auth and React apps.

  1. 1

    Create an Application

    Open the developer portal, create an Application, and add your callback URL. You get a client ID and a client secret.

  2. 2

    Add @strave/auth

    The Better Auth preset reads the endpoints, uses PKCE, and saves the Siege name, the profiles, and the Discord ID on your users.

  3. 3

    Show the button

    The button follows the Strave brand and needs no CSS. Other stacks use the OpenID Connect discovery document.

lib/auth.ts
import { betterAuth } from "better-auth";
import { genericOAuth } from "better-auth/plugins";
import { strave, straveUserFields } from "@strave/auth/better-auth";

export const auth = betterAuth({
  user: { additionalFields: straveUserFields },
  plugins: [
    genericOAuth({
      config: [
        strave({
          clientId: process.env.STRAVE_CLIENT_ID!,
          clientSecret: process.env.STRAVE_CLIENT_SECRET,
          storeIdentity: true,
        }),
      ],
    }),
  ],
});
components/sign-in.tsx
import { LoginWithStraveButton } from "@strave/auth/react";

<LoginWithStraveButton
  onClick={() => authClient.signIn.social({ provider: "strave" })}
/>

Built with an AI tool?

Let your AI add it.

One prompt has the package, the scopes, and the claims. Paste it into Claude Code, or open it in a tool. You send it.

Or open it inCursorClaudeLovable
Trust

Clear about trust. Players stay in control.

Strave tells your app how strongly it knows that a player owns a profile, and it never shares more than the player allowed.

For your app

  • A verification level on every profile

    Today every profile is "claimed": the player selected it, and no other Strave account holds the same Ubisoft account.

  • Not proof for prizes or bans

    A claimed profile doesn't prove that the player owns the Ubisoft account. Don't use it alone for payouts, prizes, or bans.

  • Stronger levels without breaking changes

    Strave adds stronger levels, for example from match evidence. Apps that read an unknown level as "claimed" keep working.

For players

  • Consent for each scope

    The consent screen lists every scope. An app sees the Siege profiles or the Discord account only when the player allows it.

  • Remove an app at any time

    Players see their apps in Settings and can remove one. This deletes the consent and the refresh tokens.

  • Unlink means gone

    When a player removes a link on Strave, the userinfo endpoint stops returning it at once.

Questions

What developers ask us.

What does Login with Strave cost?
Nothing. The identity scopes are free on every plan and don't count against an API quota. Only the Public API, for example tournament data, uses your quota.
Is this official Ubisoft data?
No. It is the data that players linked on Strave. Strave is not part of Ubisoft.
Does a linked profile prove ownership?
Not yet. Every profile has the level "claimed" today. Use it to fill in names and IDs, not alone for prizes, payouts, or bans.
Does it work without Better Auth?
Yes. Login with Strave is standard OpenID Connect with PKCE. Any OpenID Connect library can use the discovery document.
Do I need an Application?
Not for the Siege identity. Apps can register themselves through OAuth dynamic client registration. They can't request email, and the consent screen marks them as not verified by Strave.
What if a player linked nothing?
The claim is null. The sign-in still works, and your app can ask the player to link a Ubisoft account on Strave.

One button.
Every player.

Create an Application, add @strave/auth, and your players sign in with the Siege identity they already have on Strave.