D3vision
D3vision
BABetter Auth
Created by HotShot on 2/23/2025 in #help
Roblox OAuth provider error when linking
Which uses toISOString for the updatedAt value
6 replies
BABetter Auth
Created by HotShot on 2/23/2025 in #help
Roblox OAuth provider error when linking
In fact, this looks like something is going wrong when inserting the new account into the database
6 replies
BABetter Auth
Created by HotShot on 2/23/2025 in #help
Roblox OAuth provider error when linking
Have you tried linking with other oauth providers? Cause this could very well be a problem that isn't specific to the Roblox OAuth provider
6 replies
BABetter Auth
Created by LoLesttK on 1/18/2025 in #help
OAuth skill issue
That could indeed also be the problem
10 replies
BABetter Auth
Created by LoLesttK on 1/18/2025 in #help
OAuth skill issue
Also, for your convenience, these are all the options for the signIn.social function: - callbackURL (optional)
A URL to redirect the user to after signing in.
- newUserCallbackURL (optional)
A URL to redirect the user to if they are newly registered.
Useful when different routes are used for new and existing users.
- errorCallbackURL (optional)
A URL to redirect the user to if an error occurs.
If authentication is initiated from the client SDK, this defaults to the current URL.
- provider (required)
The OAuth2 provider to use.
- disableRedirect (optional)
A boolean flag to disable automatic redirection to the provider.
Useful if you want to handle redirection manually, such as in a popup or a different tab.
10 replies
BABetter Auth
Created by LoLesttK on 1/18/2025 in #help
OAuth skill issue
Okay so if I understand you correctly what should be happening is: click button -> redirect to github oauth page -> redirect to redirect uri but what is currently happening is: click button -> redirect to redirect uri Is that correct?
10 replies
BABetter Auth
Created by HotShot on 12/10/2024 in #help
Using Generic OAuth plugin to link social
So in your case it would still give you an error due to the username not being the same as the email address of the user @imide
24 replies
BABetter Auth
Created by HotShot on 12/10/2024 in #help
Using Generic OAuth plugin to link social
Not a bad idea, however that would still leave the email checking problem. When using the manual linking feature, once the email existence check has passed it checks to see if the email for the user is the same as the email for the account you're trying to link. I really don't understand why cause this is a manual link so emails shouldn't matter but it does.
24 replies
BABetter Auth
Created by HotShot on 12/10/2024 in #help
Using Generic OAuth plugin to link social
If something like this is not allowed to be shared here, please do let me know and I will remove the message
24 replies
BABetter Auth
Created by HotShot on 12/10/2024 in #help
Using Generic OAuth plugin to link social
For anyone who's interested, my fork has the Roblox provider built-in and is currently on version 1.1.4. You can install it using npm install 'https://gitpkg.vercel.app/D3visionNL/better-auth/packages/better-auth?main' (or whichever package manager you prefer) I had to use gitpkg cause else you get the main package which is kinda useless since we only need the better-auth package. Config is:
roblox:{
clientId: <your clientid>,
clientSecret: <your clientsecret>,
}
roblox:{
clientId: <your clientid>,
clientSecret: <your clientsecret>,
}
Please do keep in mind that I am fully intending for this to be temporary so don't expect me to keep it up to date. And finally, I am not making a PR with my "implementation" due to the fact that Better Auth is hardcoded to expect an email address and Roblox does not provide email addresses. While my current fix works, this issue really needs a more proper fix that could also apply to other social providers.
24 replies
BABetter Auth
Created by HotShot on 12/10/2024 in #help
Using Generic OAuth plugin to link social
That is an issue that would need to be handled for either direct Roblox implementation or for custom oauth implementation for the account linking feature
24 replies
BABetter Auth
Created by HotShot on 12/10/2024 in #help
Using Generic OAuth plugin to link social
I just looked into making a PR for Roblox support and it's a bit more difficult than just adding the provider. Roblox does not provide an email address through their oauth which triggers some errors
24 replies
BABetter Auth
Created by HotShot on 12/10/2024 in #help
Using Generic OAuth plugin to link social
Sweet👌
24 replies
BABetter Auth
Created by HotShot on 12/10/2024 in #help
Using Generic OAuth plugin to link social
Also replied to the issue on github lol
24 replies
BABetter Auth
Created by HotShot on 12/10/2024 in #help
Using Generic OAuth plugin to link social
And getting the exact same issue as HotShot
24 replies
BABetter Auth
Created by HotShot on 12/10/2024 in #help
Using Generic OAuth plugin to link social
I know, I am also using the custom Oauth plugin
24 replies
BABetter Auth
Created by HotShot on 12/10/2024 in #help
Using Generic OAuth plugin to link social
I have everything set up but I simply get:
{"message":"[\n {\n \"received\": \"roblox\",\n \"code\": \"invalid_enum_value\",\n \"options\": [\n \"apple\",\n \"discord\",\n \"facebook\",\n \"github\",\n \"microsoft\",\n \"google\",\n \"spotify\",\n \"twitch\",\n \"twitter\",\n \"dropbox\",\n \"linkedin\",\n \"gitlab\",\n \"reddit\"\n ],\n \"path\": [\n \"provider\"\n ],\n \"message\": \"Invalid enum value. Expected 'apple' | 'discord' | 'facebook' | 'github' | 'microsoft' | 'google' | 'spotify' | 'twitch' | 'twitter' | 'dropbox' | 'linkedin' | 'gitlab' | 'reddit', received 'roblox'\"\n }\n]","details":[{"received":"roblox","code":"invalid_enum_value","options":["apple","discord","facebook","github","microsoft","google","spotify","twitch","twitter","dropbox","linkedin","gitlab","reddit"],"path":["provider"],"message":"Invalid enum value. Expected 'apple' | 'discord' | 'facebook' | 'github' | 'microsoft' | 'google' | 'spotify' | 'twitch' | 'twitter' | 'dropbox' | 'linkedin' | 'gitlab' | 'reddit', received 'roblox'"}],"code":"______RECEIVED_ROBLOX____CODE_INVALID_ENUM_VALUE____OPTIONS_______APPLE______DISCORD______FACEBOOK______GITHUB______MICROSOFT______GOOGLE______SPOTIFY______TWITCH______TWITTER______DROPBOX______LINKEDIN______GITLAB______REDDIT________PATH_______PROVIDER________MESSAGE_INVALID_ENUM_VALUE_EXPECTED_APPLE__DISCORD__FACEBOOK__GITHUB__MICROSOFT__GOOGLE__SPOTIFY__TWITCH__TWITTER__DROPBOX__LINKEDIN__GITLAB__REDDIT_RECEIVED_ROBLOX__"}
{"message":"[\n {\n \"received\": \"roblox\",\n \"code\": \"invalid_enum_value\",\n \"options\": [\n \"apple\",\n \"discord\",\n \"facebook\",\n \"github\",\n \"microsoft\",\n \"google\",\n \"spotify\",\n \"twitch\",\n \"twitter\",\n \"dropbox\",\n \"linkedin\",\n \"gitlab\",\n \"reddit\"\n ],\n \"path\": [\n \"provider\"\n ],\n \"message\": \"Invalid enum value. Expected 'apple' | 'discord' | 'facebook' | 'github' | 'microsoft' | 'google' | 'spotify' | 'twitch' | 'twitter' | 'dropbox' | 'linkedin' | 'gitlab' | 'reddit', received 'roblox'\"\n }\n]","details":[{"received":"roblox","code":"invalid_enum_value","options":["apple","discord","facebook","github","microsoft","google","spotify","twitch","twitter","dropbox","linkedin","gitlab","reddit"],"path":["provider"],"message":"Invalid enum value. Expected 'apple' | 'discord' | 'facebook' | 'github' | 'microsoft' | 'google' | 'spotify' | 'twitch' | 'twitter' | 'dropbox' | 'linkedin' | 'gitlab' | 'reddit', received 'roblox'"}],"code":"______RECEIVED_ROBLOX____CODE_INVALID_ENUM_VALUE____OPTIONS_______APPLE______DISCORD______FACEBOOK______GITHUB______MICROSOFT______GOOGLE______SPOTIFY______TWITCH______TWITTER______DROPBOX______LINKEDIN______GITLAB______REDDIT________PATH_______PROVIDER________MESSAGE_INVALID_ENUM_VALUE_EXPECTED_APPLE__DISCORD__FACEBOOK__GITHUB__MICROSOFT__GOOGLE__SPOTIFY__TWITCH__TWITTER__DROPBOX__LINKEDIN__GITLAB__REDDIT_RECEIVED_ROBLOX__"}
24 replies
BABetter Auth
Created by HotShot on 12/10/2024 in #help
Using Generic OAuth plugin to link social
And I am running into the same issue
24 replies