+
+ Sign in to keep your rating and games on any device, and to
+ appear on the leaderboard.
+
+
+
+ ) : null}
) : (
<>
diff --git a/src/contexts/AuthContext.tsx b/src/contexts/AuthContext.tsx
index 4ee0313c..1786cf47 100644
--- a/src/contexts/AuthContext.tsx
+++ b/src/contexts/AuthContext.tsx
@@ -11,7 +11,11 @@ import { registerProperties } from 'src/lib/posthogClient'
interface IAuthContext {
user: User | null
- connectLichess: (source: SignInSource) => void
+ /**
+ * Goes to Lichess's sign-in, then back to `returnTo` (a path on this site)
+ * or, without it, the current page.
+ */
+ connectLichess: (source: SignInSource, returnTo?: string) => void
logout: () => Promise