workos / authkit-nextjs

The WorkOS library for Next.js provides convenient helpers for authentication and session management using WorkOS & AuthKit with Next.js.
MIT License
58 stars 14 forks source link

Remove console.log #4

Closed samselikoff closed 6 months ago

samselikoff commented 6 months ago

Believe this was leftover, I'm seeing it in my app

PaulAsjes commented 6 months ago

Thanks @samselikoff!

@benoitgrelard what if we put this and the other console logs behind a debug config parameter? For instance:

// doesn't show logs (default)
const { user } = await getUser();

// shows logs
const { user } = await getUser({ debug: true });

I think they could still be useful if you're debugging session management but a little noisy if you aren't.

benoitgrelard commented 6 months ago

Yep, I'll take care of that. @samselikoff I'll close this one and will deal with this separately. Thanks!