What i'm doing wrong in this auth

context: i’m new to speckle as a dev, my senior asked me to do the oauth in speckle in next js,
my repo is single file can anyone please check what i’m doing wrong with this library speckle-auth

i get logged in , and moved to my workspace sectioin,
but then i get pushed back to the home page with logout
meanwhile accessToken is in url

thank you for any help

I can’t tell much from the repo you shared, we can ask @vwb who is the library author.

Closing this thread as it is double posted here: Speckle Auth Izipizi - #11 by mrayushmehrotra