You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -58,7 +60,7 @@ Logging in can be implemented via Server Actions:
58
60
action={async (formData) => {
59
61
"use server";
60
62
61
-
awaitsaleorAuthClient.signIn(
63
+
awaitgetServerAuthClient().signIn(
62
64
{
63
65
email: formData.get("email").toString(),
64
66
password: formData.get("password").toString(),
@@ -73,7 +75,7 @@ Logging in can be implemented via Server Actions:
73
75
74
76
Then, you can use `saleorAuthClient.fetchWithAuth` directly for any queries and mutations.
75
77
76
-
For a full working example see the [Saleor Auth SDK example](https://github.com/saleor/example-auth-sdk/blob/5babda35969c35f423680b47d1446466b18b2461/app/ssr/page.tsx).
78
+
For a full working example, see the [Saleor Auth SDK example](https://github.com/saleor/example-auth-sdk/tree/app/ssr/page.tsx).
77
79
78
80
### Next.js Pages Router with [Apollo Client](https://www.apollographql.com/docs/react/)
0 commit comments