videosphere
    Preparing search index...

    Function persistGoogleAuthForUser

    • Records Google OAuth login on an existing profile and stores a refresh token when provided.

      Parameters

      • userId: string

        Auth user id.

      • OptionalrefreshToken: string

        Google refresh token from the login token exchange, if any.

      • Optionaloptions: PersistGoogleAuthOptions

        Optional update flags (e.g. unset password on connect).

      Returns Promise<void>

      Resolves when the profile update completes.