@thunderid/vue 0.0.1
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/LICENSE +201 -0
- package/dist/ThunderIDVueClient.d.ts +65 -0
- package/dist/ThunderIDVueClient.d.ts.map +1 -0
- package/dist/__temp__/api.d.ts +64 -0
- package/dist/__temp__/api.d.ts.map +1 -0
- package/dist/__temp__/models.d.ts +44 -0
- package/dist/__temp__/models.d.ts.map +1 -0
- package/dist/api/getAllOrganizations.d.ts +25 -0
- package/dist/api/getAllOrganizations.d.ts.map +1 -0
- package/dist/api/getMeOrganizations.d.ts +25 -0
- package/dist/api/getMeOrganizations.d.ts.map +1 -0
- package/dist/api/getSchemas.d.ts +25 -0
- package/dist/api/getSchemas.d.ts.map +1 -0
- package/dist/api/getScim2Me.d.ts +25 -0
- package/dist/api/getScim2Me.d.ts.map +1 -0
- package/dist/api/updateMeProfile.d.ts +25 -0
- package/dist/api/updateMeProfile.d.ts.map +1 -0
- package/dist/cjs/index.cjs +13392 -0
- package/dist/components/actions/BaseSignInButton.d.ts +35 -0
- package/dist/components/actions/BaseSignInButton.d.ts.map +1 -0
- package/dist/components/actions/BaseSignOutButton.d.ts +35 -0
- package/dist/components/actions/BaseSignOutButton.d.ts.map +1 -0
- package/dist/components/actions/BaseSignUpButton.d.ts +35 -0
- package/dist/components/actions/BaseSignUpButton.d.ts.map +1 -0
- package/dist/components/actions/SignInButton.d.ts +27 -0
- package/dist/components/actions/SignInButton.d.ts.map +1 -0
- package/dist/components/actions/SignOutButton.d.ts +24 -0
- package/dist/components/actions/SignOutButton.d.ts.map +1 -0
- package/dist/components/actions/SignUpButton.d.ts +27 -0
- package/dist/components/actions/SignUpButton.d.ts.map +1 -0
- package/dist/components/adapters/FacebookButton.d.ts +25 -0
- package/dist/components/adapters/FacebookButton.d.ts.map +1 -0
- package/dist/components/adapters/GitHubButton.d.ts +25 -0
- package/dist/components/adapters/GitHubButton.d.ts.map +1 -0
- package/dist/components/adapters/GoogleButton.d.ts +25 -0
- package/dist/components/adapters/GoogleButton.d.ts.map +1 -0
- package/dist/components/adapters/MicrosoftButton.d.ts +25 -0
- package/dist/components/adapters/MicrosoftButton.d.ts.map +1 -0
- package/dist/components/auth/Callback.d.ts +32 -0
- package/dist/components/auth/Callback.d.ts.map +1 -0
- package/dist/components/auth/sign-in/AuthOptionFactory.d.ts +19 -0
- package/dist/components/auth/sign-in/AuthOptionFactory.d.ts.map +1 -0
- package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts +69 -0
- package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts.map +1 -0
- package/dist/components/auth/sign-in/BaseSignIn.d.ts +28 -0
- package/dist/components/auth/sign-in/BaseSignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/SignIn.d.ts +28 -0
- package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v1/BaseSignIn.d.ts +27 -0
- package/dist/components/auth/sign-in/v1/BaseSignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v1/SignIn.d.ts +27 -0
- package/dist/components/auth/sign-in/v1/SignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v1/options/SignInOptionFactory.d.ts +47 -0
- package/dist/components/auth/sign-in/v1/options/SignInOptionFactory.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v2/AuthOptionFactory.d.ts +19 -0
- package/dist/components/auth/sign-in/v2/AuthOptionFactory.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v2/BaseSignIn.d.ts +83 -0
- package/dist/components/auth/sign-in/v2/BaseSignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-in/v2/SignIn.d.ts +56 -0
- package/dist/components/auth/sign-in/v2/SignIn.d.ts.map +1 -0
- package/dist/components/auth/sign-up/BaseSignUp.d.ts +33 -0
- package/dist/components/auth/sign-up/BaseSignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/SignUp.d.ts +29 -0
- package/dist/components/auth/sign-up/SignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v1/BaseSignUp.d.ts +49 -0
- package/dist/components/auth/sign-up/v1/BaseSignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v1/SignUp.d.ts +31 -0
- package/dist/components/auth/sign-up/v1/SignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v1/options/SignUpOptionFactory.d.ts +50 -0
- package/dist/components/auth/sign-up/v1/options/SignUpOptionFactory.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v2/BaseSignUp.d.ts +73 -0
- package/dist/components/auth/sign-up/v2/BaseSignUp.d.ts.map +1 -0
- package/dist/components/auth/sign-up/v2/SignUp.d.ts +26 -0
- package/dist/components/auth/sign-up/v2/SignUp.d.ts.map +1 -0
- package/dist/components/control/Loading.d.ts +34 -0
- package/dist/components/control/Loading.d.ts.map +1 -0
- package/dist/components/control/SignedIn.d.ts +34 -0
- package/dist/components/control/SignedIn.d.ts.map +1 -0
- package/dist/components/control/SignedOut.d.ts +34 -0
- package/dist/components/control/SignedOut.d.ts.map +1 -0
- package/dist/components/factories/FieldFactory.d.ts +52 -0
- package/dist/components/factories/FieldFactory.d.ts.map +1 -0
- package/dist/components/presentation/accept-invite/AcceptInvite.d.ts +29 -0
- package/dist/components/presentation/accept-invite/AcceptInvite.d.ts.map +1 -0
- package/dist/components/presentation/accept-invite/BaseAcceptInvite.d.ts +83 -0
- package/dist/components/presentation/accept-invite/BaseAcceptInvite.d.ts.map +1 -0
- package/dist/components/presentation/create-organization/BaseCreateOrganization.d.ts +26 -0
- package/dist/components/presentation/create-organization/BaseCreateOrganization.d.ts.map +1 -0
- package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts +35 -0
- package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts.map +1 -0
- package/dist/components/presentation/create-organization/CreateOrganization.d.ts +26 -0
- package/dist/components/presentation/create-organization/CreateOrganization.d.ts.map +1 -0
- package/dist/components/presentation/invite-user/BaseInviteUser.d.ts +81 -0
- package/dist/components/presentation/invite-user/BaseInviteUser.d.ts.map +1 -0
- package/dist/components/presentation/invite-user/InviteUser.d.ts +26 -0
- package/dist/components/presentation/invite-user/InviteUser.d.ts.map +1 -0
- package/dist/components/presentation/language-switcher/BaseLanguageSwitcher.d.ts +26 -0
- package/dist/components/presentation/language-switcher/BaseLanguageSwitcher.d.ts.map +1 -0
- package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts +37 -0
- package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts.map +1 -0
- package/dist/components/presentation/language-switcher/LanguageSwitcher.d.ts +26 -0
- package/dist/components/presentation/language-switcher/LanguageSwitcher.d.ts.map +1 -0
- package/dist/components/presentation/organization/Organization.d.ts +39 -0
- package/dist/components/presentation/organization/Organization.d.ts.map +1 -0
- package/dist/components/presentation/organization-list/BaseOrganizationList.d.ts +24 -0
- package/dist/components/presentation/organization-list/BaseOrganizationList.d.ts.map +1 -0
- package/dist/components/presentation/organization-list/OrganizationList.css.d.ts +33 -0
- package/dist/components/presentation/organization-list/OrganizationList.css.d.ts.map +1 -0
- package/dist/components/presentation/organization-list/OrganizationList.d.ts +26 -0
- package/dist/components/presentation/organization-list/OrganizationList.d.ts.map +1 -0
- package/dist/components/presentation/organization-profile/BaseOrganizationProfile.d.ts +27 -0
- package/dist/components/presentation/organization-profile/BaseOrganizationProfile.d.ts.map +1 -0
- package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts +25 -0
- package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts.map +1 -0
- package/dist/components/presentation/organization-profile/OrganizationProfile.d.ts +26 -0
- package/dist/components/presentation/organization-profile/OrganizationProfile.d.ts.map +1 -0
- package/dist/components/presentation/organization-switcher/BaseOrganizationSwitcher.d.ts +26 -0
- package/dist/components/presentation/organization-switcher/BaseOrganizationSwitcher.d.ts.map +1 -0
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts +40 -0
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts.map +1 -0
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.d.ts +26 -0
- package/dist/components/presentation/organization-switcher/OrganizationSwitcher.d.ts.map +1 -0
- package/dist/components/presentation/user/User.d.ts +39 -0
- package/dist/components/presentation/user/User.d.ts.map +1 -0
- package/dist/components/presentation/user-dropdown/BaseUserDropdown.d.ts +59 -0
- package/dist/components/presentation/user-dropdown/BaseUserDropdown.d.ts.map +1 -0
- package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts +46 -0
- package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts.map +1 -0
- package/dist/components/presentation/user-dropdown/UserDropdown.d.ts +44 -0
- package/dist/components/presentation/user-dropdown/UserDropdown.d.ts.map +1 -0
- package/dist/components/presentation/user-profile/BaseUserProfile.d.ts +40 -0
- package/dist/components/presentation/user-profile/BaseUserProfile.d.ts.map +1 -0
- package/dist/components/presentation/user-profile/UserProfile.css.d.ts +34 -0
- package/dist/components/presentation/user-profile/UserProfile.css.d.ts.map +1 -0
- package/dist/components/presentation/user-profile/UserProfile.d.ts +21 -0
- package/dist/components/presentation/user-profile/UserProfile.d.ts.map +1 -0
- package/dist/components/primitives/Alert/Alert.css.d.ts +31 -0
- package/dist/components/primitives/Alert/Alert.css.d.ts.map +1 -0
- package/dist/components/primitives/Alert/Alert.d.ts +21 -0
- package/dist/components/primitives/Alert/Alert.d.ts.map +1 -0
- package/dist/components/primitives/Alert/index.d.ts +19 -0
- package/dist/components/primitives/Alert/index.d.ts.map +1 -0
- package/dist/components/primitives/Button/Button.css.d.ts +37 -0
- package/dist/components/primitives/Button/Button.css.d.ts.map +1 -0
- package/dist/components/primitives/Button/Button.d.ts +21 -0
- package/dist/components/primitives/Button/Button.d.ts.map +1 -0
- package/dist/components/primitives/Button/index.d.ts +19 -0
- package/dist/components/primitives/Button/index.d.ts.map +1 -0
- package/dist/components/primitives/Card/Card.css.d.ts +30 -0
- package/dist/components/primitives/Card/Card.css.d.ts.map +1 -0
- package/dist/components/primitives/Card/Card.d.ts +21 -0
- package/dist/components/primitives/Card/Card.d.ts.map +1 -0
- package/dist/components/primitives/Card/index.d.ts +19 -0
- package/dist/components/primitives/Card/index.d.ts.map +1 -0
- package/dist/components/primitives/Checkbox/Checkbox.css.d.ts +31 -0
- package/dist/components/primitives/Checkbox/Checkbox.css.d.ts.map +1 -0
- package/dist/components/primitives/Checkbox/Checkbox.d.ts +21 -0
- package/dist/components/primitives/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/primitives/Checkbox/index.d.ts +19 -0
- package/dist/components/primitives/Checkbox/index.d.ts.map +1 -0
- package/dist/components/primitives/DatePicker/DatePicker.css.d.ts +31 -0
- package/dist/components/primitives/DatePicker/DatePicker.css.d.ts.map +1 -0
- package/dist/components/primitives/DatePicker/DatePicker.d.ts +21 -0
- package/dist/components/primitives/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/components/primitives/DatePicker/index.d.ts +19 -0
- package/dist/components/primitives/DatePicker/index.d.ts.map +1 -0
- package/dist/components/primitives/Divider/Divider.css.d.ts +33 -0
- package/dist/components/primitives/Divider/Divider.css.d.ts.map +1 -0
- package/dist/components/primitives/Divider/Divider.d.ts +21 -0
- package/dist/components/primitives/Divider/Divider.d.ts.map +1 -0
- package/dist/components/primitives/Divider/index.d.ts +19 -0
- package/dist/components/primitives/Divider/index.d.ts.map +1 -0
- package/dist/components/primitives/Icons.d.ts +35 -0
- package/dist/components/primitives/Icons.d.ts.map +1 -0
- package/dist/components/primitives/Logo/Logo.css.d.ts +28 -0
- package/dist/components/primitives/Logo/Logo.css.d.ts.map +1 -0
- package/dist/components/primitives/Logo/Logo.d.ts +21 -0
- package/dist/components/primitives/Logo/Logo.d.ts.map +1 -0
- package/dist/components/primitives/Logo/index.d.ts +19 -0
- package/dist/components/primitives/Logo/index.d.ts.map +1 -0
- package/dist/components/primitives/OtpField/OtpField.css.d.ts +28 -0
- package/dist/components/primitives/OtpField/OtpField.css.d.ts.map +1 -0
- package/dist/components/primitives/OtpField/OtpField.d.ts +21 -0
- package/dist/components/primitives/OtpField/OtpField.d.ts.map +1 -0
- package/dist/components/primitives/OtpField/index.d.ts +19 -0
- package/dist/components/primitives/OtpField/index.d.ts.map +1 -0
- package/dist/components/primitives/PasswordField/PasswordField.css.d.ts +31 -0
- package/dist/components/primitives/PasswordField/PasswordField.css.d.ts.map +1 -0
- package/dist/components/primitives/PasswordField/PasswordField.d.ts +21 -0
- package/dist/components/primitives/PasswordField/PasswordField.d.ts.map +1 -0
- package/dist/components/primitives/PasswordField/index.d.ts +19 -0
- package/dist/components/primitives/PasswordField/index.d.ts.map +1 -0
- package/dist/components/primitives/Select/Select.css.d.ts +31 -0
- package/dist/components/primitives/Select/Select.css.d.ts.map +1 -0
- package/dist/components/primitives/Select/Select.d.ts +26 -0
- package/dist/components/primitives/Select/Select.d.ts.map +1 -0
- package/dist/components/primitives/Select/index.d.ts +19 -0
- package/dist/components/primitives/Select/index.d.ts.map +1 -0
- package/dist/components/primitives/Spinner/Spinner.css.d.ts +34 -0
- package/dist/components/primitives/Spinner/Spinner.css.d.ts.map +1 -0
- package/dist/components/primitives/Spinner/Spinner.d.ts +21 -0
- package/dist/components/primitives/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/primitives/Spinner/index.d.ts +19 -0
- package/dist/components/primitives/Spinner/index.d.ts.map +1 -0
- package/dist/components/primitives/TextField/TextField.css.d.ts +31 -0
- package/dist/components/primitives/TextField/TextField.css.d.ts.map +1 -0
- package/dist/components/primitives/TextField/TextField.d.ts +21 -0
- package/dist/components/primitives/TextField/TextField.d.ts.map +1 -0
- package/dist/components/primitives/TextField/index.d.ts +19 -0
- package/dist/components/primitives/TextField/index.d.ts.map +1 -0
- package/dist/components/primitives/Typography/Typography.css.d.ts +31 -0
- package/dist/components/primitives/Typography/Typography.css.d.ts.map +1 -0
- package/dist/components/primitives/Typography/Typography.d.ts +21 -0
- package/dist/components/primitives/Typography/Typography.d.ts.map +1 -0
- package/dist/components/primitives/Typography/index.d.ts +19 -0
- package/dist/components/primitives/Typography/index.d.ts.map +1 -0
- package/dist/composables/useBranding.d.ts +44 -0
- package/dist/composables/useBranding.d.ts.map +1 -0
- package/dist/composables/useFlow.d.ts +46 -0
- package/dist/composables/useFlow.d.ts.map +1 -0
- package/dist/composables/useFlowMeta.d.ts +42 -0
- package/dist/composables/useFlowMeta.d.ts.map +1 -0
- package/dist/composables/useI18n.d.ts +46 -0
- package/dist/composables/useI18n.d.ts.map +1 -0
- package/dist/composables/useOAuthCallback.d.ts +66 -0
- package/dist/composables/useOAuthCallback.d.ts.map +1 -0
- package/dist/composables/useOrganization.d.ts +42 -0
- package/dist/composables/useOrganization.d.ts.map +1 -0
- package/dist/composables/useTheme.d.ts +44 -0
- package/dist/composables/useTheme.d.ts.map +1 -0
- package/dist/composables/useThunderID.d.ts +49 -0
- package/dist/composables/useThunderID.d.ts.map +1 -0
- package/dist/composables/useUser.d.ts +45 -0
- package/dist/composables/useUser.d.ts.map +1 -0
- package/dist/composables/v2/useOAuthCallback.d.ts +70 -0
- package/dist/composables/v2/useOAuthCallback.d.ts.map +1 -0
- package/dist/index.d.ts +124 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13168 -0
- package/dist/keys.d.ts +52 -0
- package/dist/keys.d.ts.map +1 -0
- package/dist/models/config.d.ts +20 -0
- package/dist/models/config.d.ts.map +1 -0
- package/dist/models/contexts.d.ts +246 -0
- package/dist/models/contexts.d.ts.map +1 -0
- package/dist/plugins/ThunderIDPlugin.d.ts +72 -0
- package/dist/plugins/ThunderIDPlugin.d.ts.map +1 -0
- package/dist/providers/BrandingProvider.d.ts +30 -0
- package/dist/providers/BrandingProvider.d.ts.map +1 -0
- package/dist/providers/FlowMetaProvider.d.ts +21 -0
- package/dist/providers/FlowMetaProvider.d.ts.map +1 -0
- package/dist/providers/FlowProvider.d.ts +21 -0
- package/dist/providers/FlowProvider.d.ts.map +1 -0
- package/dist/providers/I18nProvider.d.ts +21 -0
- package/dist/providers/I18nProvider.d.ts.map +1 -0
- package/dist/providers/OrganizationProvider.d.ts +21 -0
- package/dist/providers/OrganizationProvider.d.ts.map +1 -0
- package/dist/providers/ThemeProvider.d.ts +21 -0
- package/dist/providers/ThemeProvider.d.ts.map +1 -0
- package/dist/providers/ThunderIDProvider.d.ts +36 -0
- package/dist/providers/ThunderIDProvider.d.ts.map +1 -0
- package/dist/providers/UserProvider.d.ts +21 -0
- package/dist/providers/UserProvider.d.ts.map +1 -0
- package/dist/router/callbackRoute.d.ts +88 -0
- package/dist/router/callbackRoute.d.ts.map +1 -0
- package/dist/router/guard.d.ts +97 -0
- package/dist/router/guard.d.ts.map +1 -0
- package/dist/styles/animations.css.d.ts +29 -0
- package/dist/styles/animations.css.d.ts.map +1 -0
- package/dist/styles/defaults.css.d.ts +32 -0
- package/dist/styles/defaults.css.d.ts.map +1 -0
- package/dist/styles/injectStyles.d.ts +24 -0
- package/dist/styles/injectStyles.d.ts.map +1 -0
- package/dist/theme/getActiveTheme.d.ts +29 -0
- package/dist/theme/getActiveTheme.d.ts.map +1 -0
- package/dist/theme/themeDetection.d.ts +31 -0
- package/dist/theme/themeDetection.d.ts.map +1 -0
- package/dist/utils/getDisplayName.d.ts +21 -0
- package/dist/utils/getDisplayName.d.ts.map +1 -0
- package/dist/utils/getMappedUserProfileValue.d.ts +21 -0
- package/dist/utils/getMappedUserProfileValue.d.ts.map +1 -0
- package/dist/utils/handleWebAuthnAuthentication.d.ts +28 -0
- package/dist/utils/handleWebAuthnAuthentication.d.ts.map +1 -0
- package/dist/utils/hasAuthParamsInUrl.d.ts +27 -0
- package/dist/utils/hasAuthParamsInUrl.d.ts.map +1 -0
- package/dist/utils/http.d.ts +27 -0
- package/dist/utils/http.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +31 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/navigate.d.ts +28 -0
- package/dist/utils/navigate.d.ts.map +1 -0
- package/dist/utils/oauth.d.ts +25 -0
- package/dist/utils/oauth.d.ts.map +1 -0
- package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts +29 -0
- package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts.map +1 -0
- package/dist/utils/v2/flowTransformer.d.ts +97 -0
- package/dist/utils/v2/flowTransformer.d.ts.map +1 -0
- package/dist/utils/v2/getAuthComponentHeadings.d.ts +41 -0
- package/dist/utils/v2/getAuthComponentHeadings.d.ts.map +1 -0
- package/dist/utils/v2/passkey.d.ts +32 -0
- package/dist/utils/v2/passkey.d.ts.map +1 -0
- package/dist/utils/v2/resolveTranslationsInArray.d.ts +30 -0
- package/dist/utils/v2/resolveTranslationsInArray.d.ts.map +1 -0
- package/dist/utils/v2/resolveTranslationsInObject.d.ts +30 -0
- package/dist/utils/v2/resolveTranslationsInObject.d.ts.map +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { defineComponent } from 'vue';
|
|
19
|
+
/**
|
|
20
|
+
* Options for creating a callback route.
|
|
21
|
+
*/
|
|
22
|
+
export interface CallbackRouteOptions {
|
|
23
|
+
/**
|
|
24
|
+
* The route name. If not provided, no name is set on the route record.
|
|
25
|
+
*/
|
|
26
|
+
name?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Optional error handler called when the OAuth callback encounters an error.
|
|
29
|
+
*/
|
|
30
|
+
onError?: (error: Error) => void;
|
|
31
|
+
/**
|
|
32
|
+
* The URL path for the callback route.
|
|
33
|
+
* @default '/callback'
|
|
34
|
+
*/
|
|
35
|
+
path?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A minimal route record type compatible with Vue Router's `RouteRecordRaw`.
|
|
39
|
+
*
|
|
40
|
+
* This avoids a hard dependency on `vue-router` while remaining structurally compatible.
|
|
41
|
+
*/
|
|
42
|
+
export interface ThunderIDRouteRecord {
|
|
43
|
+
component: ReturnType<typeof defineComponent>;
|
|
44
|
+
meta?: Record<string, unknown>;
|
|
45
|
+
name?: string;
|
|
46
|
+
path: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Creates a Vue Router route record for the OAuth2 callback.
|
|
50
|
+
*
|
|
51
|
+
* The generated route renders the `<Callback>` component which extracts OAuth parameters
|
|
52
|
+
* (code, state, error) from the URL and redirects the user back to the original path.
|
|
53
|
+
*
|
|
54
|
+
* **Requires `vue-router` as a peer dependency.**
|
|
55
|
+
*
|
|
56
|
+
* @param options - Callback route configuration.
|
|
57
|
+
* @returns A route record compatible with Vue Router's `RouteRecordRaw`.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```typescript
|
|
61
|
+
* import { createRouter, createWebHistory } from 'vue-router';
|
|
62
|
+
* import { createCallbackRoute } from '@thunderid/vue';
|
|
63
|
+
*
|
|
64
|
+
* const router = createRouter({
|
|
65
|
+
* history: createWebHistory(),
|
|
66
|
+
* routes: [
|
|
67
|
+
* createCallbackRoute({ path: '/callback' }),
|
|
68
|
+
* { path: '/', component: Home },
|
|
69
|
+
* { path: '/dashboard', component: Dashboard },
|
|
70
|
+
* ],
|
|
71
|
+
* });
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```typescript
|
|
76
|
+
* // With error handling and Vue Router navigation
|
|
77
|
+
* import { useRouter } from 'vue-router';
|
|
78
|
+
*
|
|
79
|
+
* createCallbackRoute({
|
|
80
|
+
* path: '/auth/callback',
|
|
81
|
+
* name: 'oauth-callback',
|
|
82
|
+
* onError: (error) => console.error('OAuth error:', error),
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
export declare const createCallbackRoute: (options?: CallbackRouteOptions) => ThunderIDRouteRecord;
|
|
87
|
+
export default createCallbackRoute;
|
|
88
|
+
//# sourceMappingURL=callbackRoute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callbackRoute.d.ts","sourceRoot":"","sources":["../../src/router/callbackRoute.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAiB,eAAe,EAAI,MAAM,KAAK,CAAC;AAGvD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAS,oBAAyB,KAAG,oBAmBxE,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Options for the ThunderID navigation guard.
|
|
20
|
+
*/
|
|
21
|
+
export interface GuardOptions {
|
|
22
|
+
/**
|
|
23
|
+
* Maximum time (in ms) to wait for SDK initialization before redirecting.
|
|
24
|
+
* Only applicable when `waitForInit` is `true`.
|
|
25
|
+
* @default 10000
|
|
26
|
+
*/
|
|
27
|
+
initTimeout?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The path to redirect unauthenticated users to.
|
|
30
|
+
* @default '/'
|
|
31
|
+
*/
|
|
32
|
+
redirectTo?: string;
|
|
33
|
+
/**
|
|
34
|
+
* If `true`, the guard will wait for the SDK to finish initializing before
|
|
35
|
+
* evaluating the authentication state. If `false`, the guard will reject
|
|
36
|
+
* immediately when the SDK is not yet initialized.
|
|
37
|
+
* @default true
|
|
38
|
+
*/
|
|
39
|
+
waitForInit?: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A minimal navigation guard type compatible with Vue Router's `NavigationGuard`.
|
|
43
|
+
*
|
|
44
|
+
* This avoids a hard dependency on `vue-router` while remaining structurally compatible.
|
|
45
|
+
* When consumers pass this to `beforeEnter` or `router.beforeEach`, Vue Router will
|
|
46
|
+
* accept it because it satisfies the shape of `NavigationGuard`.
|
|
47
|
+
*/
|
|
48
|
+
export type NavigationGuardReturn = boolean | string | {
|
|
49
|
+
path: string;
|
|
50
|
+
} | {
|
|
51
|
+
name: string;
|
|
52
|
+
} | undefined;
|
|
53
|
+
export type ThunderIDNavigationGuard = (to: {
|
|
54
|
+
fullPath: string;
|
|
55
|
+
path: string;
|
|
56
|
+
query: Record<string, string | (string | null)[] | null | undefined>;
|
|
57
|
+
}, from: {
|
|
58
|
+
fullPath: string;
|
|
59
|
+
path: string;
|
|
60
|
+
}, next: (target?: NavigationGuardReturn) => void) => void | Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Creates a Vue Router navigation guard that protects routes by requiring authentication.
|
|
63
|
+
*
|
|
64
|
+
* The guard injects the ThunderID context to check `isSignedIn` state.
|
|
65
|
+
* If the user is not authenticated, they are redirected to `redirectTo`.
|
|
66
|
+
*
|
|
67
|
+
* **Requires `vue-router` as a peer dependency.**
|
|
68
|
+
*
|
|
69
|
+
* @param options - Guard configuration options.
|
|
70
|
+
* @returns A navigation guard function compatible with Vue Router's `beforeEnter` or `router.beforeEach`.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```typescript
|
|
74
|
+
* import { createRouter, createWebHistory } from 'vue-router';
|
|
75
|
+
* import { createThunderIDGuard } from '@thunderid/vue';
|
|
76
|
+
*
|
|
77
|
+
* const router = createRouter({
|
|
78
|
+
* history: createWebHistory(),
|
|
79
|
+
* routes: [
|
|
80
|
+
* {
|
|
81
|
+
* path: '/dashboard',
|
|
82
|
+
* component: Dashboard,
|
|
83
|
+
* beforeEnter: createThunderIDGuard({ redirectTo: '/login' }),
|
|
84
|
+
* },
|
|
85
|
+
* ],
|
|
86
|
+
* });
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```typescript
|
|
91
|
+
* // Global guard on all routes
|
|
92
|
+
* router.beforeEach(createThunderIDGuard({ redirectTo: '/' }));
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
export declare const createThunderIDGuard: (options?: GuardOptions) => ThunderIDNavigationGuard;
|
|
96
|
+
export default createThunderIDGuard;
|
|
97
|
+
//# sourceMappingURL=guard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guard.d.ts","sourceRoot":"","sources":["../../src/router/guard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AASH;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,MAAM,GAAG;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,GAAG;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,GAAG,SAAS,CAAC;AACnG,MAAM,MAAM,wBAAwB,GAAG,CACrC,EAAE,EAAE;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;CAAC,EAC1G,IAAI,EAAE;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,EACtC,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,qBAAqB,KAAK,IAAI,KAC3C,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAS,YAAiB,KAAG,wBAkEjE,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Shared CSS keyframe animations used by multiple primitive components.
|
|
20
|
+
*
|
|
21
|
+
* `thunder-spin` - used by Spinner (__svg) and Button (__spinner)
|
|
22
|
+
* `thunder-spinner-dash` - used by Spinner (__circle)
|
|
23
|
+
*
|
|
24
|
+
* Defined once here rather than in each component's CSS file to avoid
|
|
25
|
+
* duplicate `@keyframes` blocks in the injected stylesheet.
|
|
26
|
+
*/
|
|
27
|
+
declare const ANIMATIONS_CSS = "\n/* ============================================================\n ThunderID Vue SDK \u2013 shared keyframe animations\n ============================================================ */\n\n@keyframes thunder-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes thunder-spinner-dash {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35px;\n }\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124px;\n }\n}\n";
|
|
28
|
+
export default ANIMATIONS_CSS;
|
|
29
|
+
//# sourceMappingURL=animations.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animations.css.d.ts","sourceRoot":"","sources":["../../src/styles/animations.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;GAQG;AACH,QAAA,MAAM,cAAc,ykBA4BnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Default CSS custom property fallback values.
|
|
20
|
+
*
|
|
21
|
+
* These are written into a `:root` rule so that every ThunderID Vue primitive
|
|
22
|
+
* renders correctly even when no ThemeProvider is mounted. When ThemeProvider
|
|
23
|
+
* IS present it calls `document.documentElement.style.setProperty(...)` which
|
|
24
|
+
* has higher specificity than a stylesheet `:root` rule and therefore wins
|
|
25
|
+
* automatically — no special cascade tricks required.
|
|
26
|
+
*
|
|
27
|
+
* Design token naming follows the pattern:
|
|
28
|
+
* --thunder-{category}-{sub}-{scale?}
|
|
29
|
+
*/
|
|
30
|
+
declare const DEFAULTS_CSS = "\n/* ============================================================\n ThunderID Vue SDK \u2013 CSS variable defaults\n (ThemeProvider overrides these at runtime via inline styles)\n ============================================================ */\n:root {\n /* --- Colors: Primary --- */\n --thunder-color-primary-main: #4b6ef5;\n --thunder-color-primary-light: #eef1fe;\n --thunder-color-primary-dark: #3451d1;\n --thunder-color-primary-contrastText: #ffffff;\n\n /* --- Colors: Secondary --- */\n --thunder-color-secondary-main: #4b5563;\n --thunder-color-secondary-light: #f3f4f6;\n --thunder-color-secondary-contrastText: #ffffff;\n\n /* --- Colors: Background --- */\n --thunder-color-background-surface: #ffffff;\n --thunder-color-background-body: #f9fafb;\n --thunder-color-background-disabled: #f3f4f6;\n --thunder-color-background-muted: #f1f3f5;\n\n /* --- Colors: Text --- */\n --thunder-color-text-primary: #111827;\n --thunder-color-text-secondary: #6b7280;\n\n /* --- Colors: Border --- */\n --thunder-color-border: #e5e7eb;\n --thunder-color-border-focus: var(--thunder-color-primary-main);\n\n /* --- Colors: Action states --- */\n --thunder-color-action-hover: rgba(0, 0, 0, 0.04);\n --thunder-color-action-selected: rgba(75, 110, 245, 0.08);\n --thunder-color-action-focus: rgba(75, 110, 245, 0.12);\n --thunder-color-action-disabled: rgba(0, 0, 0, 0.26);\n --thunder-color-action-disabledBackground: rgba(0, 0, 0, 0.08);\n\n /* --- Colors: Semantic --- */\n --thunder-color-error-main: #ef4444;\n --thunder-color-error-light: #fef2f2;\n --thunder-color-error-contrastText: #991b1b;\n --thunder-color-success-main: #22c55e;\n --thunder-color-success-light: #f0fdf4;\n --thunder-color-success-contrastText: #166534;\n --thunder-color-warning-main: #f59e0b;\n --thunder-color-warning-light: #fffbeb;\n --thunder-color-warning-contrastText: #92400e;\n --thunder-color-info-main: #3b82f6;\n --thunder-color-info-light: #eff6ff;\n --thunder-color-info-contrastText: #1e40af;\n\n /* --- Spacing --- */\n --thunder-spacing-unit: 8px;\n\n /* --- Border Radius --- */\n --thunder-border-radius-xs: 4px;\n --thunder-border-radius-small: 6px;\n --thunder-border-radius-medium: 10px;\n --thunder-border-radius-large: 14px;\n --thunder-border-radius-full: 9999px;\n\n /* --- Shadows --- */\n --thunder-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);\n --thunder-shadow-small: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);\n --thunder-shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);\n --thunder-shadow-large: 0 10px 25px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);\n\n /* --- Transitions --- */\n --thunder-transition-fast: 120ms ease;\n --thunder-transition-normal: 180ms ease;\n --thunder-transition-slow: 280ms ease;\n\n /* --- Focus Ring --- */\n --thunder-focus-ring-width: 2px;\n --thunder-focus-ring-offset: 2px;\n --thunder-focus-ring-color: rgba(75, 110, 245, 0.35);\n\n /* --- Typography: Font Family --- */\n --thunder-typography-fontFamily: \"Inter\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n\n /* --- Typography: Font Sizes --- */\n --thunder-typography-fontSize-xs: 0.6875rem; /* 11px */\n --thunder-typography-fontSize-sm: 0.8125rem; /* 13px */\n --thunder-typography-fontSize-md: 0.875rem; /* 14px */\n --thunder-typography-fontSize-lg: 1rem; /* 16px */\n --thunder-typography-fontSize-xl: 1.125rem; /* 18px */\n --thunder-typography-fontSize-2xl: 1.375rem; /* 22px */\n --thunder-typography-fontSize-3xl: 1.75rem; /* 28px */\n\n /* --- Typography: Font Weights --- */\n --thunder-typography-fontWeight-normal: 400;\n --thunder-typography-fontWeight-medium: 500;\n --thunder-typography-fontWeight-semibold: 600;\n --thunder-typography-fontWeight-bold: 700;\n\n /* --- Typography: Line Heights --- */\n --thunder-typography-lineHeight-tight: 1.25;\n --thunder-typography-lineHeight-normal: 1.5;\n --thunder-typography-lineHeight-relaxed: 1.625;\n\n /* --- Typography: Letter Spacing --- */\n --thunder-typography-letterSpacing-tight: -0.01em;\n --thunder-typography-letterSpacing-normal: 0;\n --thunder-typography-letterSpacing-wide: 0.025em;\n\n /* --- Component: Button --- */\n --thunder-button-borderRadius: var(--thunder-border-radius-small);\n --thunder-button-fontWeight: var(--thunder-typography-fontWeight-medium);\n --thunder-button-sm-height: 30px;\n --thunder-button-sm-paddingX: calc(var(--thunder-spacing-unit) * 1.25);\n --thunder-button-sm-fontSize: var(--thunder-typography-fontSize-sm);\n --thunder-button-md-height: 36px;\n --thunder-button-md-paddingX: calc(var(--thunder-spacing-unit) * 2);\n --thunder-button-md-fontSize: var(--thunder-typography-fontSize-md);\n --thunder-button-lg-height: 42px;\n --thunder-button-lg-paddingX: calc(var(--thunder-spacing-unit) * 2.5);\n --thunder-button-lg-fontSize: var(--thunder-typography-fontSize-lg);\n\n /* --- Component: Input fields --- */\n --thunder-input-borderRadius: var(--thunder-border-radius-small);\n --thunder-input-height: 36px;\n --thunder-input-paddingX: calc(var(--thunder-spacing-unit) * 1.25);\n --thunder-input-fontSize: var(--thunder-typography-fontSize-md);\n --thunder-input-borderColor: var(--thunder-color-border);\n --thunder-input-focusBorderColor: var(--thunder-color-primary-main);\n --thunder-input-focusRing: 0 0 0 3px var(--thunder-focus-ring-color);\n\n /* --- Component: Card --- */\n --thunder-card-borderRadius: var(--thunder-border-radius-medium);\n --thunder-card-padding: calc(var(--thunder-spacing-unit) * 2.5);\n --thunder-card-shadow: var(--thunder-shadow-small);\n --thunder-card-borderColor: var(--thunder-color-border);\n\n /* --- Component: Alert --- */\n --thunder-alert-borderRadius: var(--thunder-border-radius-small);\n --thunder-alert-paddingX: calc(var(--thunder-spacing-unit) * 1.5);\n --thunder-alert-paddingY: calc(var(--thunder-spacing-unit) * 1.25);\n\n /* --- Component: Checkbox --- */\n --thunder-checkbox-size: 16px;\n\n /* --- Component: Avatar --- */\n --thunder-avatar-size: 64px;\n --thunder-avatar-fontSize: 1.375rem;\n\n /* --- Component: Dropdown --- */\n --thunder-dropdown-borderRadius: var(--thunder-border-radius-medium);\n --thunder-dropdown-shadow: var(--thunder-shadow-medium);\n --thunder-dropdown-itemPaddingX: calc(var(--thunder-spacing-unit) * 1.5);\n --thunder-dropdown-itemPaddingY: calc(var(--thunder-spacing-unit) * 1);\n\n /* --- Component overrides (set by ThemeProvider when configured) --- */\n --thunder-component-button-root-borderRadius: var(--thunder-button-borderRadius);\n --thunder-component-field-root-borderRadius: var(--thunder-input-borderRadius);\n}\n";
|
|
31
|
+
export default DEFAULTS_CSS;
|
|
32
|
+
//# sourceMappingURL=defaults.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.css.d.ts","sourceRoot":"","sources":["../../src/styles/defaults.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,YAAY,+nNA4JjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Injects ThunderID Vue component styles into the document `<head>` once.
|
|
20
|
+
* Subsequent calls are no-ops (idempotent).
|
|
21
|
+
*/
|
|
22
|
+
export declare function injectStyles(): void;
|
|
23
|
+
export default injectStyles;
|
|
24
|
+
//# sourceMappingURL=injectStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"injectStyles.d.ts","sourceRoot":"","sources":["../../src/styles/injectStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAoFH;;;GAGG;AACH,wBAAgB,YAAY,IAAI,IAAI,CAQnC;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Re-export of the active theme resolver from the Browser SDK.
|
|
20
|
+
*
|
|
21
|
+
* Gets the active theme based on the theme mode preference:
|
|
22
|
+
* - `'light'` / `'dark'` → Returns the specified mode directly.
|
|
23
|
+
* - `'system'` → Uses `matchMedia('(prefers-color-scheme: dark)')` to detect system preference.
|
|
24
|
+
* - `'class'` → Inspects DOM element class list for dark/light classes.
|
|
25
|
+
*
|
|
26
|
+
* @see {@link @thunderid/browser#getActiveTheme}
|
|
27
|
+
*/
|
|
28
|
+
export { getActiveTheme, getActiveTheme as default } from '@thunderid/browser';
|
|
29
|
+
//# sourceMappingURL=getActiveTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getActiveTheme.d.ts","sourceRoot":"","sources":["../../src/theme/getActiveTheme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;GASG;AACH,OAAO,EAAC,cAAc,EAAE,cAAc,IAAI,OAAO,EAAC,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Re-exports of theme detection utilities from the Browser SDK.
|
|
20
|
+
*
|
|
21
|
+
* - `detectThemeMode` — Detects current theme mode based on system preference or DOM class.
|
|
22
|
+
* - `createClassObserver` — Creates a MutationObserver watching for CSS class changes on a target element.
|
|
23
|
+
* - `createMediaQueryListener` — Creates a media query listener for `prefers-color-scheme` changes.
|
|
24
|
+
* - `BrowserThemeDetection` — Configuration interface for DOM-specific theme detection options.
|
|
25
|
+
*
|
|
26
|
+
* @see {@link @thunderid/browser#detectThemeMode}
|
|
27
|
+
* @see {@link @thunderid/browser#createClassObserver}
|
|
28
|
+
* @see {@link @thunderid/browser#createMediaQueryListener}
|
|
29
|
+
*/
|
|
30
|
+
export { detectThemeMode, createClassObserver, createMediaQueryListener, type BrowserThemeDetection, } from '@thunderid/browser';
|
|
31
|
+
//# sourceMappingURL=themeDetection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themeDetection.d.ts","sourceRoot":"","sources":["../../src/theme/themeDetection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;;;GAWG;AACH,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,wBAAwB,EACxB,KAAK,qBAAqB,GAC3B,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { User } from '@thunderid/browser';
|
|
19
|
+
declare const getDisplayName: (mergedMappings: Record<string, string | string[] | undefined>, user: User, displayAttributes?: string[]) => string;
|
|
20
|
+
export default getDisplayName;
|
|
21
|
+
//# sourceMappingURL=getDisplayName.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDisplayName.d.ts","sourceRoot":"","sources":["../../src/utils/getDisplayName.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,IAAI,EAAC,MAAM,oBAAoB,CAAC;AAGxC,QAAA,MAAM,cAAc,GAClB,gBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,EAC7D,MAAM,IAAI,EACV,oBAAoB,MAAM,EAAE,KAC3B,MAyBF,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { User } from '@thunderid/browser';
|
|
19
|
+
declare const getMappedUserProfileValue: (key: string, mappings: Record<string, string | string[]>, user: User) => any;
|
|
20
|
+
export default getMappedUserProfileValue;
|
|
21
|
+
//# sourceMappingURL=getMappedUserProfileValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMappedUserProfileValue.d.ts","sourceRoot":"","sources":["../../src/utils/getMappedUserProfileValue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,IAAI,EAAM,MAAM,oBAAoB,CAAC;AAE7C,QAAA,MAAM,yBAAyB,GAAI,KAAK,MAAM,EAAE,UAAU,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,MAAM,IAAI,KAAG,GAuBzG,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Re-export of the WebAuthn authentication handler from the Browser SDK.
|
|
20
|
+
*
|
|
21
|
+
* Handles WebAuthn/Passkey authentication flow for browser environments,
|
|
22
|
+
* including browser compatibility checks, HTTPS validation, challenge processing,
|
|
23
|
+
* and the credential authentication ceremony.
|
|
24
|
+
*
|
|
25
|
+
* @see {@link @thunderid/browser#handleWebAuthnAuthentication}
|
|
26
|
+
*/
|
|
27
|
+
export { handleWebAuthnAuthentication, handleWebAuthnAuthentication as default } from '@thunderid/browser';
|
|
28
|
+
//# sourceMappingURL=handleWebAuthnAuthentication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleWebAuthnAuthentication.d.ts","sourceRoot":"","sources":["../../src/utils/handleWebAuthnAuthentication.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;GAQG;AACH,OAAO,EAAC,4BAA4B,EAAE,4BAA4B,IAAI,OAAO,EAAC,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Re-export of the auth params URL check from the Browser SDK.
|
|
20
|
+
*
|
|
21
|
+
* Checks if `code` (and optionally `session_state`) are present in the URL search params,
|
|
22
|
+
* indicating an OAuth2 authorization code callback.
|
|
23
|
+
*
|
|
24
|
+
* @see {@link @thunderid/browser#hasAuthParamsInUrl}
|
|
25
|
+
*/
|
|
26
|
+
export { hasAuthParamsInUrl, hasAuthParamsInUrl as default } from '@thunderid/browser';
|
|
27
|
+
//# sourceMappingURL=hasAuthParamsInUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasAuthParamsInUrl.d.ts","sourceRoot":"","sources":["../../src/utils/hasAuthParamsInUrl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;GAOG;AACH,OAAO,EAAC,kBAAkB,EAAE,kBAAkB,IAAI,OAAO,EAAC,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Re-export of the HTTP utility from the Browser SDK.
|
|
20
|
+
*
|
|
21
|
+
* Creates an HTTP utility for making authenticated requests using a specific
|
|
22
|
+
* ThunderIDSPAClient instance. The returned object has `request` and `requestAll` methods.
|
|
23
|
+
*
|
|
24
|
+
* @see {@link @thunderid/browser#http}
|
|
25
|
+
*/
|
|
26
|
+
export { http, http as default } from '@thunderid/browser';
|
|
27
|
+
//# sourceMappingURL=http.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/utils/http.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;GAOG;AACH,OAAO,EAAC,IAAI,EAAE,IAAI,IAAI,OAAO,EAAC,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { createPackageComponentLogger, createPackageLogger } from '@thunderid/browser';
|
|
19
|
+
/**
|
|
20
|
+
* Package-level logger for `@thunderid/vue`.
|
|
21
|
+
* Use this when logging is not tied to a specific component.
|
|
22
|
+
*/
|
|
23
|
+
declare const logger: ReturnType<typeof createPackageLogger>;
|
|
24
|
+
/**
|
|
25
|
+
* Creates a component-scoped logger prefixed with `@thunderid/vue - <component>`.
|
|
26
|
+
*
|
|
27
|
+
* @param component - The component or module name (e.g. `'ThunderIDProvider'`).
|
|
28
|
+
*/
|
|
29
|
+
export declare const createVueLogger: (component: string) => ReturnType<typeof createPackageComponentLogger>;
|
|
30
|
+
export default logger;
|
|
31
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,4BAA4B,EAAE,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAIrF;;;GAGG;AACH,QAAA,MAAM,MAAM,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAqC,CAAC;AAEzF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,WAAW,MAAM,KAAG,UAAU,CAAC,OAAO,4BAA4B,CAC3C,CAAC;AAExD,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Re-export of the navigation helper from the Browser SDK.
|
|
20
|
+
*
|
|
21
|
+
* Navigates to a new URL within the browser:
|
|
22
|
+
* - For same-origin URLs: Uses the History API and dispatches a `popstate` event (SPA navigation).
|
|
23
|
+
* - For cross-origin URLs: Performs a full page load using `window.location.assign`.
|
|
24
|
+
*
|
|
25
|
+
* @see {@link @thunderid/browser#navigate}
|
|
26
|
+
*/
|
|
27
|
+
export { navigate, navigate as default } from '@thunderid/browser';
|
|
28
|
+
//# sourceMappingURL=navigate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigate.d.ts","sourceRoot":"","sources":["../../src/utils/navigate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;GAQG;AACH,OAAO,EAAC,QAAQ,EAAE,QAAQ,IAAI,OAAO,EAAC,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Initiates OAuth redirect with CSRF protection.
|
|
20
|
+
* Generates random state, stores return path in sessionStorage, and redirects to OAuth provider.
|
|
21
|
+
*
|
|
22
|
+
* @param redirectURL - OAuth authorization URL from the server
|
|
23
|
+
*/
|
|
24
|
+
export declare function initiateOAuthRedirect(redirectURL: string): void;
|
|
25
|
+
//# sourceMappingURL=oauth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/utils/oauth.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAsB/D"}
|