Client not Receiving Bearer Token

On the server I see the header is set, though on the onSuccess on the signIn it's always null. Cors are not blocking any requests. everything else works.

await authClient.signIn.social({
                        provider: "github",
                        fetchOptions: {
                            onSuccess: (ctx) => {
                                const authToken = ctx.response.headers.get("set-auth-token")

                                console.log(authToken, ctx, "COOL")
                                if (authToken) {
                                    localStorage.setItem("bearer_token", authToken)
                                }
                            },
                        },
                    })
Was this page helpful?