Skip to content

Update session not called in WorkOs sample #5021

@stefandevo

Description

@stefandevo

Which project does this relate to?

Start

Describe the bug

Based upon the WorkOS sample, there is a bug where updateSession is never called, hence when the initial token time expires, it's never refreshed with a refresh token.

Your Example Website or App

https://github.com/tanstack/router/tree/main/examples/react/start-workos

Steps to Reproduce the Bug or Issue

updateSession call in the session.ts never called.

Expected behavior

When checking for auth, it should check for valid session and refresh.

@nicknisi as maker of the sample can you elaborate how this should work with refreshing the tokens?

Metadata

Metadata

Assignees

No one assigned

    Labels

    examplesstartEverything about TanStack Start

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions