@seaverse/auth-sdk 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/dist/auth-modal.css +1 -1
- package/dist/index.cjs +14 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2838,25 +2838,26 @@ class AuthModal {
|
|
|
2838
2838
|
const hasOAuth = this.options.enableOAuth &&
|
|
2839
2839
|
(this.options.enableOAuth.google || this.options.enableOAuth.discord || this.options.enableOAuth.github);
|
|
2840
2840
|
if (hasOAuth) {
|
|
2841
|
-
//
|
|
2841
|
+
// Social buttons container (vertical list)
|
|
2842
|
+
const socialButtons = document.createElement('div');
|
|
2843
|
+
socialButtons.className = 'social-buttons';
|
|
2844
|
+
// Google button
|
|
2842
2845
|
if (this.options.enableOAuth?.google) {
|
|
2843
|
-
const googleBtn = this.createSocialButton('google', '
|
|
2844
|
-
googleBtn
|
|
2845
|
-
form.appendChild(googleBtn);
|
|
2846
|
+
const googleBtn = this.createSocialButton('google', 'Google', 'login', true);
|
|
2847
|
+
socialButtons.appendChild(googleBtn);
|
|
2846
2848
|
}
|
|
2847
|
-
//
|
|
2848
|
-
const socialGrid = document.createElement('div');
|
|
2849
|
-
socialGrid.className = 'social-buttons-grid';
|
|
2849
|
+
// GitHub button
|
|
2850
2850
|
if (this.options.enableOAuth?.github) {
|
|
2851
|
-
const githubBtn = this.createSocialButton('github', '
|
|
2852
|
-
|
|
2851
|
+
const githubBtn = this.createSocialButton('github', 'Github', 'login', true);
|
|
2852
|
+
socialButtons.appendChild(githubBtn);
|
|
2853
2853
|
}
|
|
2854
|
+
// Discord button
|
|
2854
2855
|
if (this.options.enableOAuth?.discord) {
|
|
2855
|
-
const discordBtn = this.createSocialButton('discord', 'Discord', 'login');
|
|
2856
|
-
|
|
2856
|
+
const discordBtn = this.createSocialButton('discord', 'Discord', 'login', true);
|
|
2857
|
+
socialButtons.appendChild(discordBtn);
|
|
2857
2858
|
}
|
|
2858
|
-
if (
|
|
2859
|
-
form.appendChild(
|
|
2859
|
+
if (socialButtons.children.length > 0) {
|
|
2860
|
+
form.appendChild(socialButtons);
|
|
2860
2861
|
}
|
|
2861
2862
|
// Divider
|
|
2862
2863
|
const divider = document.createElement('div');
|