Skip to content

docs: clarify setSession network behavior in doc comment#1332

Merged
grdsdev merged 2 commits intoguilherme/sdk-784-featauth-add-setsession-support-for-both-access_token-andfrom
copilot/sub-pr-1327-again
Mar 25, 2026
Merged

docs: clarify setSession network behavior in doc comment#1332
grdsdev merged 2 commits intoguilherme/sdk-784-featauth-add-setsession-support-for-both-access_token-andfrom
copilot/sub-pr-1327-again

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 25, 2026

The setSession() doc comment incorrectly stated the session was restored "without a network round-trip" when a valid accessToken is provided — it still calls /user to populate the user object; only the /token refresh call is skipped.

Changes

  • gotrue_client.dart: Rewrote the setSession() doc comment to accurately state it skips the /token refresh round-trip but still issues a /user request to populate the session's user object.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] [WIP] Address feedback on accessToken parameter in setSession() implementation docs: clarify setSession network behavior in doc comment Mar 25, 2026
Copilot AI requested a review from grdsdev March 25, 2026 14:06
@grdsdev grdsdev marked this pull request as ready for review March 25, 2026 14:40
@grdsdev grdsdev merged commit 8946afa into guilherme/sdk-784-featauth-add-setsession-support-for-both-access_token-and Mar 25, 2026
@grdsdev grdsdev deleted the copilot/sub-pr-1327-again branch March 25, 2026 14:40
grdsdev added a commit that referenced this pull request Mar 30, 2026
* Initial plan

* docs: clarify setSession skips /token refresh but still calls /user

Co-authored-by: grdsdev <5923044+grdsdev@users.noreply.github.com>
Agent-Logs-Url: https://github.com/supabase/supabase-flutter/sessions/db643f38-73ec-4b87-92e3-9d995d319a73

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: grdsdev <5923044+grdsdev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants