bearer token returns null with OAuth provider

I want to use bearer token to pass it as header to get jwt token but i couldn't get bearer token with OAuth I tried both OnSuccess and OnResponse handler and also added cors with exposedHeader with set-auth-token with express

useCase: Socket.io handeshake
better-auth v: 1.2.2
frontend: nextjs
backend: expressjs
image.png
Was this page helpful?