Skip to content

Clarify when get_user() returns None - #1569

Open
LeonardoRosaa wants to merge 1 commit into
supabase:mainfrom
LeonardoRosaa:auth_get_user_doc
Open

Clarify when get_user() returns None#1569
LeonardoRosaa wants to merge 1 commit into
supabase:mainfrom
LeonardoRosaa:auth_get_user_doc

Conversation

@LeonardoRosaa

Copy link
Copy Markdown

What kind of change does this PR introduce?

Docs update.

What is the current behavior?

get_user() is typed Optional[UserResponse], but the docstring only explains the jwt parameter - it doesn't say when the method returns None. Callers have to read the implementation to find out.

What is the new behavior?

Adds a sentence to the docstring clarifying that get_user() returns None only when no jwt is provided and there is no active session to retrieve one from.

No behavior changes - docstring only, no tests affected.

@LeonardoRosaa
LeonardoRosaa requested review from a team and o-santi as code owners August 9, 2026 19:39
@LeonardoRosaa LeonardoRosaa changed the title clarify when get_user() returns None Clarify when get_user() returns None Aug 9, 2026
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.

1 participant