genericOAuth discoveryUrl TypeError: Invalid URL

# SERVER_ERROR: [TypeError: Invalid URL] { code: 'ERR_INVALID_URL', input: 'undefined' }
POST /api/auth/sign-in/social 500 in 1873ms
# SERVER_ERROR: [TypeError: Invalid URL] { code: 'ERR_INVALID_URL', input: 'undefined' }
POST /api/auth/sign-in/social 500 in 1873ms
I built my own OAuth2 authorization server, but when I try to use it with Better-Auth, I get an error. The error is too brief to identify the cause. Is there a debug mode etc?
2 Replies
Kiwi
Kiwi3mo ago
@Lami Does the API route exist?
Lami
LamiOP3mo ago
Yes, it does. using discoveryUrl. Perhaps the discoveryUrl response is incorrect

Did you find this page helpful?