Skip to content

Change the console.error under emitInitialSession to a warn or info #1679

@lochoangwork

Description

@lochoangwork

Chore

Describe the chore

Change the following console.error to a console.warn or console.info instead.

https://github.com/supabase/auth-js/blob/b64fae2e49ea17f29f2e06b5f5489c225fb3b663/src/GoTrueClient.ts#L1678

The reason for this is that this console.error would print whenever a user's session expired from inactivity or some other reason, and it would flood our logging services with Errors that aren't actually problems (false positives). By changing it to a non-error print, we do not see these more-or-less benign prints in our logs when we scope for errors.

We have actually manually patched this to be a warn instead in our own code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auth-jsRelated to the auth-js library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions