@ctx-core/auth0-ui 10.0.119 → 10.0.123
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/.swcrc +10 -0
- package/CHANGELOG.md +40 -0
- package/dist/auth0_ui_Ctx.js +2 -1
- package/dist/auth0_ui_Ctx.js.map +1 -1
- package/dist/auth0_ui_ctx_I.generated.js +4 -1
- package/dist/auth0_ui_ctx_I.generated.js.map +1 -1
- package/dist/auth0_ui_ctx_key.js +1 -0
- package/dist/auth0_ui_ctx_key.js.map +1 -1
- package/dist/auth_script_html_.js +2 -1
- package/dist/auth_script_html_.js.map +1 -1
- package/dist/getContext_auth0_ui_ctx.js +1 -0
- package/dist/getContext_auth0_ui_ctx.js.map +1 -1
- package/dist/{index.d.ts → index.browser.js} +2 -1
- package/dist/index.browser.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/node/index.js +1 -0
- package/dist/node/index.js.map +1 -1
- package/dist/node/jwks_cert__b.js +4 -2
- package/dist/node/jwks_cert__b.js.map +1 -1
- package/dist/node/jwks_x5c__b.js +5 -4
- package/dist/node/jwks_x5c__b.js.map +1 -1
- package/dist/node/jwt_token_decoded__b.js +2 -1
- package/dist/node/jwt_token_decoded__b.js.map +1 -1
- package/dist/node/koa_jwt_token_decoded__b.js +4 -2
- package/dist/node/koa_jwt_token_decoded__b.js.map +1 -1
- package/dist/node/verify_jwt_email__b.js +2 -1
- package/dist/node/verify_jwt_email__b.js.map +1 -1
- package/dist/node/verify_jwt_user_id__b.js +2 -1
- package/dist/node/verify_jwt_user_id__b.js.map +1 -1
- package/dist/ui/Auth0.svelte +169 -0
- package/dist/ui/Auth0_Change_Password_Form.svelte +99 -0
- package/dist/ui/Auth0_Dialog_Close.svelte +10 -0
- package/dist/ui/Auth0_Forgot_Password_Check_Email_Form.svelte +10 -0
- package/dist/ui/Auth0_Forgot_Password_Form.svelte +68 -0
- package/dist/ui/Auth0_Loggedin_If.svelte +14 -0
- package/dist/ui/Auth0_Login_Form.svelte +89 -0
- package/dist/ui/Auth0_Signup_Form.svelte +121 -0
- package/dist/ui/Auth0_c.js +53 -37
- package/dist/ui/Auth0_c.js.map +1 -1
- package/dist/ui/index.js +17 -9
- package/dist/ui/index.js.map +1 -1
- package/package.json +20 -21
- package/src/index.ts +1 -0
- package/src/ui/index.ts +8 -12
- package/COMMIT_EDITMSG +0 -1
- package/dist/auth0_ui_Ctx.d.ts +0 -9
- package/dist/auth0_ui_ctx_I.generated.d.ts +0 -14
- package/dist/auth0_ui_ctx_key.d.ts +0 -1
- package/dist/auth_script_html_.d.ts +0 -2
- package/dist/browser/auth0_ui_ctx_key.d.ts +0 -1
- package/dist/browser/auth0_ui_ctx_key.js +0 -2
- package/dist/browser/auth0_ui_ctx_key.js.map +0 -1
- package/dist/browser/auth_script_html_.d.ts +0 -2
- package/dist/browser/auth_script_html_.js +0 -34
- package/dist/browser/auth_script_html_.js.map +0 -1
- package/dist/browser/getContext_auth0_ui_ctx.d.ts +0 -1
- package/dist/browser/getContext_auth0_ui_ctx.js +0 -6
- package/dist/browser/getContext_auth0_ui_ctx.js.map +0 -1
- package/dist/browser/index.d.ts +0 -3
- package/dist/browser/index.js +0 -4
- package/dist/browser/index.js.map +0 -1
- package/dist/getContext_auth0_ui_ctx.d.ts +0 -1
- package/dist/index.cjs +0 -1
- package/dist/node/index.d.ts +0 -6
- package/dist/node/jwks_cert__b.d.ts +0 -6
- package/dist/node/jwks_x5c__b.d.ts +0 -6
- package/dist/node/jwt_token_decoded__b.d.ts +0 -6
- package/dist/node/koa_jwt_token_decoded__b.d.ts +0 -7
- package/dist/node/verify_jwt_email__b.d.ts +0 -6
- package/dist/node/verify_jwt_user_id__b.d.ts +0 -6
- package/dist/ui/Auth0_c.d.ts +0 -55
- package/dist/ui/index.d.ts +0 -10
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Auth0_Dialog_Close from './Auth0_Dialog_Close.svelte'
|
|
3
|
+
let root:HTMLDivElement
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<div bind:this="{root}" class="form forgot_password_check_email">
|
|
7
|
+
<Auth0_Dialog_Close></Auth0_Dialog_Close>
|
|
8
|
+
<h1>Check Your Email</h1>
|
|
9
|
+
<p>An email to reset you password has been sent to you.</p>
|
|
10
|
+
</div>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { AUTH0_DOMAIN$_b, auth0_token_error$_b, open_auth0_login_b, open_auth0_signup_b } from '@ctx-core/auth0'
|
|
3
|
+
import { getContext_auth0_ui_ctx } from '../getContext_auth0_ui_ctx.js'
|
|
4
|
+
import type { auth0_ui_Ctx } from '../auth0_ui_Ctx'
|
|
5
|
+
import Auth0_Dialog_Close from './Auth0_Dialog_Close.svelte'
|
|
6
|
+
import { Auth0_c } from './Auth0_c.js'
|
|
7
|
+
export let error_class = ''
|
|
8
|
+
export let input_class = ''
|
|
9
|
+
export let button_class = ''
|
|
10
|
+
export let label_class = '.js'
|
|
11
|
+
const ctx = getContext_auth0_ui_ctx() as auth0_ui_Ctx
|
|
12
|
+
const AUTH0_DOMAIN$ = AUTH0_DOMAIN$_b(ctx)
|
|
13
|
+
const auth0_token_error$ = auth0_token_error$_b(ctx)
|
|
14
|
+
const open_auth0_login = open_auth0_login_b(ctx)
|
|
15
|
+
const open_auth0_signup = open_auth0_signup_b(ctx)
|
|
16
|
+
const _ = new Auth0_c(ctx)
|
|
17
|
+
let email_input
|
|
18
|
+
let email_error:string[]
|
|
19
|
+
$: email_error = $auth0_token_error$?.email
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<div class="form forgot_password">
|
|
23
|
+
<Auth0_Dialog_Close></Auth0_Dialog_Close>
|
|
24
|
+
<h1>Forgot Password</h1>
|
|
25
|
+
<form
|
|
26
|
+
action="https://{$AUTH0_DOMAIN$}/passwordless/start"
|
|
27
|
+
accept-charset="UTF-8"
|
|
28
|
+
method="post"
|
|
29
|
+
on:submit="{event => _.onsubmit_forgot_password(event, { email_input })}"
|
|
30
|
+
>
|
|
31
|
+
{#if $auth0_token_error$}
|
|
32
|
+
<ul>
|
|
33
|
+
<li class="error {error_class}">
|
|
34
|
+
{$auth0_token_error$.error}: {$auth0_token_error$.error_description}
|
|
35
|
+
</li>
|
|
36
|
+
</ul>
|
|
37
|
+
{/if}
|
|
38
|
+
<fieldset>
|
|
39
|
+
<label class="field">
|
|
40
|
+
<div class="{label_class}">Email</div>
|
|
41
|
+
<input
|
|
42
|
+
bind:this={email_input}
|
|
43
|
+
placeholder="your@email.com"
|
|
44
|
+
required="required"
|
|
45
|
+
class="form-control {input_class}"
|
|
46
|
+
class:invalid="{email_error}"
|
|
47
|
+
type="email"
|
|
48
|
+
id="email-forgot_password"
|
|
49
|
+
name="email"/>
|
|
50
|
+
</label>
|
|
51
|
+
</fieldset>
|
|
52
|
+
<footer>
|
|
53
|
+
<input
|
|
54
|
+
type="submit"
|
|
55
|
+
value="Reset Password"
|
|
56
|
+
class="button {button_class}"
|
|
57
|
+
/>
|
|
58
|
+
<label
|
|
59
|
+
class="navigation__auth {label_class}"
|
|
60
|
+
on:click="{open_auth0_login}"
|
|
61
|
+
>Have an account? Log in…</label>
|
|
62
|
+
<label
|
|
63
|
+
class="navigation__auth {label_class}"
|
|
64
|
+
on:click="{open_auth0_signup}"
|
|
65
|
+
>Don't have an account? Signup…</label>
|
|
66
|
+
</footer>
|
|
67
|
+
</form>
|
|
68
|
+
</div>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { is_auth0_loggedin$_b, is_auth0_loggedout$_b, } from '@ctx-core/auth0'
|
|
3
|
+
import { getContext_auth0_ui_ctx } from '../getContext_auth0_ui_ctx.js'
|
|
4
|
+
import type { auth0_ui_Ctx } from '../auth0_ui_Ctx'
|
|
5
|
+
const ctx = getContext_auth0_ui_ctx() as auth0_ui_Ctx
|
|
6
|
+
const is_auth0_loggedin$ = is_auth0_loggedin$_b(ctx)
|
|
7
|
+
const is_auth0_loggedout$ = is_auth0_loggedout$_b(ctx)
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
{#if $is_auth0_loggedin$}
|
|
11
|
+
<slot name="loggedin"><slot></slot></slot>
|
|
12
|
+
{:else if $is_auth0_loggedout$}
|
|
13
|
+
<slot name="loggedout"></slot>
|
|
14
|
+
{/if}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import {
|
|
3
|
+
AUTH0_DOMAIN$_b, auth0_token_error$_b, auth0_token_error_txt_b, open_auth0_forgot_password_b, open_auth0_signup_b
|
|
4
|
+
} from '@ctx-core/auth0'
|
|
5
|
+
import type { auth0_ui_Ctx } from '../auth0_ui_Ctx.js'
|
|
6
|
+
import Auth0_Dialog_Close from './Auth0_Dialog_Close.svelte'
|
|
7
|
+
import { Auth0_c } from './Auth0_c.js'
|
|
8
|
+
export let ctx:auth0_ui_Ctx
|
|
9
|
+
export let error_class = ''
|
|
10
|
+
export let input_class = ''
|
|
11
|
+
export let button_class = ''
|
|
12
|
+
export let label_class = '.js'
|
|
13
|
+
const auth0_token_error = auth0_token_error$_b(ctx)
|
|
14
|
+
const auth0_token_error_txt = auth0_token_error_txt_b(ctx)
|
|
15
|
+
const AUTH0_DOMAIN = AUTH0_DOMAIN$_b(ctx)
|
|
16
|
+
const open_auth0_signup = open_auth0_signup_b(ctx)
|
|
17
|
+
const open_auth0_forgot_password = open_auth0_forgot_password_b(ctx)
|
|
18
|
+
const _ = new Auth0_c(ctx)
|
|
19
|
+
let root
|
|
20
|
+
let username_login_input, password_login_input
|
|
21
|
+
let username_error//region
|
|
22
|
+
$: username_error = $auth0_token_error && $auth0_token_error.username //endregion
|
|
23
|
+
let error__password//region
|
|
24
|
+
$: error__password = $auth0_token_error && $auth0_token_error.password //endregion
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<div bind:this="{root}" class="form {$$props.class||''}">
|
|
28
|
+
<Auth0_Dialog_Close></Auth0_Dialog_Close>
|
|
29
|
+
<h1><slot name="login_text">Welcome</slot></h1>
|
|
30
|
+
<form
|
|
31
|
+
action="https://{$AUTH0_DOMAIN}/oauth/token"
|
|
32
|
+
accept-charset="UTF-8"
|
|
33
|
+
method="post"
|
|
34
|
+
on:submit="{event =>
|
|
35
|
+
_.onsubmit_login(event, {
|
|
36
|
+
username_login_input,
|
|
37
|
+
password_login_input
|
|
38
|
+
}, _._schedule_forms_clear(root))}"
|
|
39
|
+
>
|
|
40
|
+
{#if $auth0_token_error_txt}
|
|
41
|
+
<ul>
|
|
42
|
+
<li class="error {error_class}">
|
|
43
|
+
{$auth0_token_error_txt}
|
|
44
|
+
</li>
|
|
45
|
+
</ul>
|
|
46
|
+
{/if}
|
|
47
|
+
<fieldset>
|
|
48
|
+
<label class="field">
|
|
49
|
+
<div class="{label_class}">Email</div>
|
|
50
|
+
<input
|
|
51
|
+
bind:this="{username_login_input}"
|
|
52
|
+
placeholder="your@email.com"
|
|
53
|
+
required="required"
|
|
54
|
+
class="form-control {input_class}"
|
|
55
|
+
class:invalid="{username_error}"
|
|
56
|
+
type="email"
|
|
57
|
+
id="username-login"
|
|
58
|
+
name="username"/>
|
|
59
|
+
</label>
|
|
60
|
+
<label class="field">
|
|
61
|
+
<div class="{label_class}">Password</div>
|
|
62
|
+
<input
|
|
63
|
+
bind:this="{password_login_input}"
|
|
64
|
+
placeholder="**********"
|
|
65
|
+
required="required"
|
|
66
|
+
class="{input_class}"
|
|
67
|
+
class:invalid="{error__password}"
|
|
68
|
+
id="password-login"
|
|
69
|
+
type="password"
|
|
70
|
+
name="password"/>
|
|
71
|
+
</label>
|
|
72
|
+
</fieldset>
|
|
73
|
+
<footer>
|
|
74
|
+
<input
|
|
75
|
+
type="submit"
|
|
76
|
+
value="Login"
|
|
77
|
+
class="button {button_class}"
|
|
78
|
+
/>
|
|
79
|
+
<label
|
|
80
|
+
class="navigation__auth {label_class}"
|
|
81
|
+
on:click="{open_auth0_signup}"
|
|
82
|
+
>Don't have an account? Signup…</label>
|
|
83
|
+
<label
|
|
84
|
+
class="navigation__auth {label_class}"
|
|
85
|
+
on:click="{open_auth0_forgot_password}"
|
|
86
|
+
>Forgot Password?</label>
|
|
87
|
+
</footer>
|
|
88
|
+
</form>
|
|
89
|
+
</div>
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { AUTH0_DOMAIN$_b, auth0_token_error$_b, open_auth0_forgot_password_b, open_auth0_login_b } from '@ctx-core/auth0'
|
|
3
|
+
import { getContext_auth0_ui_ctx } from '../getContext_auth0_ui_ctx.js'
|
|
4
|
+
import type { auth0_ui_Ctx } from '../auth0_ui_Ctx'
|
|
5
|
+
import Auth0_Dialog_Close from './Auth0_Dialog_Close.svelte'
|
|
6
|
+
import { Auth0_c } from './Auth0_c.js'
|
|
7
|
+
export let class__error = ''
|
|
8
|
+
export let class__input = ''
|
|
9
|
+
export let class__button = ''
|
|
10
|
+
export let class__label = '.js'
|
|
11
|
+
const ctx = getContext_auth0_ui_ctx() as auth0_ui_Ctx
|
|
12
|
+
const AUTH0_DOMAIN$ = AUTH0_DOMAIN$_b(ctx)
|
|
13
|
+
const auth0_token_error$ = auth0_token_error$_b(ctx)
|
|
14
|
+
const open_auth0_login = open_auth0_login_b(ctx)
|
|
15
|
+
const open_auth0_forgot_password = open_auth0_forgot_password_b(ctx)
|
|
16
|
+
const _ = new Auth0_c(ctx)
|
|
17
|
+
let root, signup_email_input, signup_password_input, signup_password_confirmation_input
|
|
18
|
+
let email_error //region
|
|
19
|
+
$: email_error = $auth0_token_error$ && $auth0_token_error$.email //endregion
|
|
20
|
+
let password_error //region
|
|
21
|
+
$: password_error = $auth0_token_error$ && $auth0_token_error$.password //endregion
|
|
22
|
+
let password_error_confirmation //region
|
|
23
|
+
$: password_error_confirmation = $auth0_token_error$ && password_error_confirmation //endregion
|
|
24
|
+
let error_text
|
|
25
|
+
$: {
|
|
26
|
+
let error_text_a = []
|
|
27
|
+
if ($auth0_token_error$) {
|
|
28
|
+
for (let key in $auth0_token_error$) {
|
|
29
|
+
error_text_a.push($auth0_token_error$[key])
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
error_text = error_text_a.join('<br>') || ''
|
|
33
|
+
}
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<div bind:this={root} class="form signup">
|
|
37
|
+
<Auth0_Dialog_Close></Auth0_Dialog_Close>
|
|
38
|
+
<h1><slot name="signup_text">Sign Up</slot></h1>
|
|
39
|
+
<form
|
|
40
|
+
action="https://{$AUTH0_DOMAIN$}/dbconnections/signup"
|
|
41
|
+
accept-charset="UTF-8"
|
|
42
|
+
method="post"
|
|
43
|
+
on:submit="{event =>
|
|
44
|
+
_.onsubmit_signup(event, {
|
|
45
|
+
signup_email_input,
|
|
46
|
+
signup_password_input,
|
|
47
|
+
signup_password_confirmation_input
|
|
48
|
+
}, _._schedule_forms_clear(root))
|
|
49
|
+
}"
|
|
50
|
+
>
|
|
51
|
+
{#if $auth0_token_error$}
|
|
52
|
+
<ul>
|
|
53
|
+
<li class="error {class__error}">
|
|
54
|
+
{error_text}
|
|
55
|
+
</li>
|
|
56
|
+
</ul>
|
|
57
|
+
{/if}
|
|
58
|
+
<fieldset>
|
|
59
|
+
<label class="field">
|
|
60
|
+
<div class="{class__label}">Email</div>
|
|
61
|
+
<input
|
|
62
|
+
bind:this="{signup_email_input}"
|
|
63
|
+
placeholder="your@email.com"
|
|
64
|
+
required="required"
|
|
65
|
+
autocomplete="email"
|
|
66
|
+
class="form-control {class__input}"
|
|
67
|
+
class:invalid="{email_error}"
|
|
68
|
+
type="email"
|
|
69
|
+
id="email-signup"
|
|
70
|
+
name="email"/>
|
|
71
|
+
</label>
|
|
72
|
+
<label class="field">
|
|
73
|
+
<div class="{class__label}">Password</div>
|
|
74
|
+
<input
|
|
75
|
+
bind:this="{signup_password_input}"
|
|
76
|
+
placeholder="**********"
|
|
77
|
+
required="required"
|
|
78
|
+
class="{class__input}"
|
|
79
|
+
class:invalid="{password_error}"
|
|
80
|
+
id="password-signup"
|
|
81
|
+
type="password"
|
|
82
|
+
name="password"/>
|
|
83
|
+
</label>
|
|
84
|
+
<label class="field">
|
|
85
|
+
<div class="{class__label}">Confirm Password</div>
|
|
86
|
+
<input
|
|
87
|
+
bind:this="{signup_password_confirmation_input}"
|
|
88
|
+
placeholder="**********"
|
|
89
|
+
required="required"
|
|
90
|
+
class="{class__input}"
|
|
91
|
+
class:invalid="{password_error_confirmation}"
|
|
92
|
+
type="password"
|
|
93
|
+
name="password_confirmation"
|
|
94
|
+
id="password_confirmation-signup"/>
|
|
95
|
+
</label>
|
|
96
|
+
<slot name="tos__signup">
|
|
97
|
+
<p>
|
|
98
|
+
By clicking ‘Sign up’ you agree to the terms of this Website <br>
|
|
99
|
+
<a href="." target="_blank">Terms of Service</a>
|
|
100
|
+
and
|
|
101
|
+
<a href="." target="_blank">Privacy Policy</a>
|
|
102
|
+
</p>
|
|
103
|
+
</slot>
|
|
104
|
+
</fieldset>
|
|
105
|
+
<footer>
|
|
106
|
+
<input
|
|
107
|
+
type="submit"
|
|
108
|
+
value="Sign up"
|
|
109
|
+
class="button {class__button}"
|
|
110
|
+
/>
|
|
111
|
+
<label
|
|
112
|
+
class="navigation__auth {class__label}"
|
|
113
|
+
on:click="{open_auth0_login}"
|
|
114
|
+
>Have an account? Log in…</label>
|
|
115
|
+
<label
|
|
116
|
+
class="navigation__auth {class__label}"
|
|
117
|
+
on:click="{open_auth0_forgot_password}"
|
|
118
|
+
>Forgot Password?</label>
|
|
119
|
+
</footer>
|
|
120
|
+
</form>
|
|
121
|
+
</div>
|
package/dist/ui/Auth0_c.js
CHANGED
|
@@ -3,8 +3,8 @@ import { has_dom, dom_a_ } from '@ctx-core/dom';
|
|
|
3
3
|
import { subscribe } from '@ctx-core/store';
|
|
4
4
|
import { auth0_body__b, auth0_opened_class$_b, auth0_token_error$_b, auth0_token_json$_b, clear_auth0_token_error_b, close_auth0_b, logout_auth0_token_error_b, open_auth0_forgot_password_check_email_b, open_auth0_login_b, password_realm_body__b, post_auth0_auth_change_password_b, post_auth0_dbconnections_signup_b, post_auth0_oauth_token_b, post_auth0_passwordless_start_b, validate_auth0_change_password, validate_auth0_forgot_password, validate_auth0_signup } from '@ctx-core/auth0';
|
|
5
5
|
export class Auth0_c {
|
|
6
|
-
constructor(
|
|
7
|
-
this.ctx =
|
|
6
|
+
constructor(ctx1){
|
|
7
|
+
this.ctx = ctx1;
|
|
8
8
|
this.login_auth0_body_ = auth0_body__b(this.ctx, 'login_auth0_body_');
|
|
9
9
|
this.login_password_realm_body_ = password_realm_body__b(this.ctx, 'login_password_realm_body_', this.login_auth0_body_);
|
|
10
10
|
this.signup_auth0_body_ = auth0_body__b(this.ctx, 'signup_auth0_body_');
|
|
@@ -21,47 +21,50 @@ export class Auth0_c {
|
|
|
21
21
|
this.post_auth0_oauth_token = post_auth0_oauth_token_b(this.ctx);
|
|
22
22
|
this.post_auth0_auth_change_password = post_auth0_auth_change_password_b(this.ctx);
|
|
23
23
|
this.post_auth0_passwordless_start = post_auth0_passwordless_start_b(this.ctx);
|
|
24
|
-
this.onMount = async (root)
|
|
24
|
+
this.onMount = async (root)=>{
|
|
25
25
|
if (has_dom) {
|
|
26
|
-
const unsubscribe = subscribe(this.auth0_opened_class, ()
|
|
26
|
+
const unsubscribe = subscribe(this.auth0_opened_class, ()=>this.schedule_forms_clear(root)
|
|
27
|
+
);
|
|
27
28
|
onDestroy(unsubscribe);
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
|
-
this.login = async (data, schedule_forms_clear = ()
|
|
31
|
+
this.login = async (data, schedule_forms_clear = ()=>{
|
|
32
|
+
})=>{
|
|
31
33
|
const response = await this.post_auth0_oauth_token(this.login_password_realm_body_(data));
|
|
32
34
|
if (response.ok) {
|
|
33
35
|
const auth0_token_json = await response.text();
|
|
34
36
|
this.auth0_token_json$.$ = auth0_token_json;
|
|
35
37
|
schedule_forms_clear();
|
|
36
38
|
this.close_auth0();
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
+
} else {
|
|
39
40
|
const $auth_token_error = await response.json();
|
|
40
41
|
this.auth0_token_error.$ = $auth_token_error;
|
|
41
42
|
this.logout_auth0_token_error($auth_token_error);
|
|
42
43
|
}
|
|
43
44
|
};
|
|
44
|
-
this.signup = async (data, schedule_forms_clear = ()
|
|
45
|
+
this.signup = async (data, schedule_forms_clear = ()=>{
|
|
46
|
+
})=>{
|
|
45
47
|
const response = await this.post_auth0_dbconnections_signup(this.signup_password_realm_body_(data));
|
|
46
48
|
const auth0_userinfo = await response.json();
|
|
47
|
-
const { statusCode
|
|
49
|
+
const { statusCode } = auth0_userinfo;
|
|
48
50
|
if (statusCode) {
|
|
49
|
-
const { code, description
|
|
50
|
-
const email = code === 'user_exists'
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
const { code , description } = auth0_userinfo;
|
|
52
|
+
const email = code === 'user_exists' ? 'This Email is already signed up' : description;
|
|
53
|
+
const auth0_token_error = {
|
|
54
|
+
email
|
|
55
|
+
};
|
|
54
56
|
this.logout_auth0_token_error(auth0_token_error);
|
|
55
57
|
return;
|
|
56
58
|
}
|
|
57
59
|
schedule_forms_clear();
|
|
58
60
|
await this.login({
|
|
59
61
|
username: data.email,
|
|
60
|
-
password: data.password
|
|
62
|
+
password: data.password
|
|
61
63
|
}, schedule_forms_clear);
|
|
62
64
|
};
|
|
63
|
-
this.change_password = async (form, schedule_forms_clear = ()
|
|
64
|
-
|
|
65
|
+
this.change_password = async (form, schedule_forms_clear = ()=>{
|
|
66
|
+
})=>{
|
|
67
|
+
const { password } = form;
|
|
65
68
|
let error;
|
|
66
69
|
try {
|
|
67
70
|
const response = await this.post_auth0_auth_change_password(password);
|
|
@@ -69,38 +72,43 @@ export class Auth0_c {
|
|
|
69
72
|
if (!response.ok) {
|
|
70
73
|
if (response.status == 401) {
|
|
71
74
|
this.open_auth0_login();
|
|
72
|
-
const auth0_token_error = {
|
|
75
|
+
const auth0_token_error = {
|
|
76
|
+
email: 'Authentication Error - Log in'
|
|
77
|
+
};
|
|
73
78
|
this.logout_auth0_token_error(auth0_token_error);
|
|
74
79
|
return;
|
|
75
80
|
}
|
|
76
81
|
error = response_json.error || 'Error changing Password';
|
|
77
82
|
}
|
|
78
|
-
}
|
|
79
|
-
catch (e) {
|
|
83
|
+
} catch (e) {
|
|
80
84
|
console.warn(e);
|
|
81
85
|
error = e.message;
|
|
82
86
|
}
|
|
83
87
|
if (error) {
|
|
84
|
-
const auth0_token_error = {
|
|
88
|
+
const auth0_token_error = {
|
|
89
|
+
password: error
|
|
90
|
+
};
|
|
85
91
|
this.logout_auth0_token_error(auth0_token_error);
|
|
86
92
|
return;
|
|
87
93
|
}
|
|
88
94
|
schedule_forms_clear();
|
|
89
95
|
this.close_auth0();
|
|
90
96
|
};
|
|
91
|
-
this.schedule_forms_clear_ = (root)
|
|
92
|
-
return ()
|
|
97
|
+
this.schedule_forms_clear_ = (root)=>{
|
|
98
|
+
return ()=>this.schedule_forms_clear(root)
|
|
99
|
+
;
|
|
93
100
|
};
|
|
94
|
-
this.schedule_forms_clear = (root)
|
|
95
|
-
setTimeout(()
|
|
101
|
+
this.schedule_forms_clear = (root)=>{
|
|
102
|
+
setTimeout(()=>{
|
|
96
103
|
this.clear_auth0_token_error();
|
|
97
104
|
clear_inputs(dom_a_('input[type=text]', root));
|
|
98
105
|
clear_inputs(dom_a_('input[type=password]', root));
|
|
99
106
|
}, 100);
|
|
100
107
|
};
|
|
101
|
-
this.onsubmit_signup = async (event, ctx, schedule_forms_clear = ()
|
|
108
|
+
this.onsubmit_signup = async (event, ctx, schedule_forms_clear = ()=>{
|
|
109
|
+
})=>{
|
|
102
110
|
event.preventDefault();
|
|
103
|
-
const { email_input, password_input, password_confirmation_input,
|
|
111
|
+
const { email_input , password_input , password_confirmation_input , } = ctx;
|
|
104
112
|
const email = email_input.value;
|
|
105
113
|
const password = password_input.value;
|
|
106
114
|
const password_confirmation = password_confirmation_input.value;
|
|
@@ -119,16 +127,20 @@ export class Auth0_c {
|
|
|
119
127
|
}, schedule_forms_clear);
|
|
120
128
|
return;
|
|
121
129
|
};
|
|
122
|
-
this.onsubmit_login = async (event, ctx, schedule_forms_clear = ()
|
|
130
|
+
this.onsubmit_login = async (event, ctx, schedule_forms_clear = ()=>{
|
|
131
|
+
})=>{
|
|
123
132
|
event.preventDefault();
|
|
124
|
-
const { username_login_input, password_login_input
|
|
133
|
+
const { username_login_input , password_login_input } = ctx;
|
|
125
134
|
const username = username_login_input.value;
|
|
126
135
|
const password = password_login_input.value;
|
|
127
|
-
await this.login({
|
|
136
|
+
await this.login({
|
|
137
|
+
username,
|
|
138
|
+
password
|
|
139
|
+
}, schedule_forms_clear);
|
|
128
140
|
};
|
|
129
|
-
this.onsubmit_forgot_password = async (event, ctx)
|
|
141
|
+
this.onsubmit_forgot_password = async (event, ctx)=>{
|
|
130
142
|
event.preventDefault();
|
|
131
|
-
const { email_input
|
|
143
|
+
const { email_input } = ctx;
|
|
132
144
|
const email = email_input.value;
|
|
133
145
|
const data = {
|
|
134
146
|
connection: 'email',
|
|
@@ -143,9 +155,10 @@ export class Auth0_c {
|
|
|
143
155
|
await this.post_auth0_passwordless_start(this.login_auth0_body_(data));
|
|
144
156
|
this.open_auth0_forgot_password_check_email();
|
|
145
157
|
};
|
|
146
|
-
this.onsubmit_change_password = async (event, ctx, schedule_forms_clear = ()
|
|
158
|
+
this.onsubmit_change_password = async (event, ctx, schedule_forms_clear = ()=>{
|
|
159
|
+
})=>{
|
|
147
160
|
event.preventDefault();
|
|
148
|
-
const { password_input, password_confirmation_input,
|
|
161
|
+
const { password_input , password_confirmation_input , } = ctx;
|
|
149
162
|
const password = password_input.value;
|
|
150
163
|
const password_confirmation = password_confirmation_input.value;
|
|
151
164
|
const auth0_token_error = validate_auth0_change_password({
|
|
@@ -156,18 +169,21 @@ export class Auth0_c {
|
|
|
156
169
|
this.logout_auth0_token_error(auth0_token_error);
|
|
157
170
|
throw auth0_token_error;
|
|
158
171
|
}
|
|
159
|
-
return await this.change_password({
|
|
172
|
+
return await this.change_password({
|
|
173
|
+
password
|
|
174
|
+
}, schedule_forms_clear);
|
|
160
175
|
};
|
|
161
|
-
this.onclose = async (event)
|
|
176
|
+
this.onclose = async (event)=>{
|
|
162
177
|
event.preventDefault();
|
|
163
178
|
this.close_auth0();
|
|
164
179
|
};
|
|
165
180
|
}
|
|
166
181
|
}
|
|
167
182
|
function clear_inputs(inputs) {
|
|
168
|
-
for
|
|
183
|
+
for(let i = 0; i < inputs.length; i++){
|
|
169
184
|
const input = inputs[i];
|
|
170
185
|
input.value = '';
|
|
171
186
|
}
|
|
172
187
|
}
|
|
188
|
+
|
|
173
189
|
//# sourceMappingURL=Auth0_c.js.map
|
package/dist/ui/Auth0_c.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Auth0_c.js","sourceRoot":"","sources":["../../src/ui/Auth0_c.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EACN,aAAa,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,yBAAyB,EAC1G,aAAa,EAAE,0BAA0B,EAAE,wCAAwC,EAAE,kBAAkB,EACvG,sBAAsB,EAAE,iCAAiC,EAAE,iCAAiC,EAC5F,wBAAwB,EAAE,+BAA+B,EAAE,8BAA8B,EACzF,8BAA8B,EAAE,qBAAqB,EACrD,MAAM,iBAAiB,CAAA;AASxB,MAAM,OAAO,OAAO;IACnB,YAAsB,GAAgB;QAAhB,QAAG,GAAH,GAAG,CAAa;QAC7B,sBAAiB,GAAG,aAAa,CAIvB,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AC5E,EAAE;YACF,KAAK,CAAC,cAAc,EAAE,CAAA;YACtB,MAAM,EACL,cAAc,EACd,2BAA2B,GAC3B,GAAG,GAAG,CAAA;YACP,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,CAAA;YACrC,MAAM,qBAAqB,GAAG,2BAA2B,CAAC,KAAK,CAAA;YAC/D,MAAM,iBAAiB,GACtB,8BAA8B,CAC7B;gBACC,QAAQ;gBACR,qBAAqB;aACrB,CAAC,CAAA;YACJ,IAAI,iBAAiB,EAAE;gBACtB,IAAI,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,CAAA;gBAChD,MAAM,iBAAiB,CAAA;aACvB;YACD,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE,oBAAoB,CAAC,CAAA;QACtE,CAAC,CAAA;QACQ,YAAO,GAAG,KAAK,EAAE,KAAgB,EAAC,EAAE;YAC5C,KAAK,CAAC,cAAc,EAAE,CAAA;YACtB,IAAI,CAAC,WAAW,EAAE,CAAA;QACnB,CAAC,CAAA;IAtMwC,CAAC;CAuM1C;AACD,SAAS,YAAY,CAAC,MAAe;IACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACvC,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAqB,CAAA;QAC3C,KAAK,CAAC,KAAK,GAAG,EAAE,CAAA;KAChB;AACF,CAAC"}
|
|
1
|
+
{"version":3,"sources":["../../src/ui/Auth0_c.ts"],"sourcesContent":["import { onDestroy } from 'svelte'\nimport { has_dom, dom_a_ } from '@ctx-core/dom'\nimport { subscribe } from '@ctx-core/store'\nimport {\n\tauth0_body__b, auth0_opened_class$_b, auth0_token_error$_b, auth0_token_json$_b, clear_auth0_token_error_b,\n\tclose_auth0_b, logout_auth0_token_error_b, open_auth0_forgot_password_check_email_b, open_auth0_login_b,\n\tpassword_realm_body__b, post_auth0_auth_change_password_b, post_auth0_dbconnections_signup_b,\n\tpost_auth0_oauth_token_b, post_auth0_passwordless_start_b, validate_auth0_change_password,\n\tvalidate_auth0_forgot_password, validate_auth0_signup\n} from '@ctx-core/auth0'\nimport type {\n\tauth0_body__T, auth0_client_id_body_I, auth0_grant_type_body_I, login_data_I, logout_auth0_token_error_T,\n\topen_auth0_forgot_password_check_email_T, open_auth0_login_T, password_realm_body__T, password_realm_body_T,\n\tpost_auth0_auth_change_password_T, post_auth0_dbconnections_signup_T, post_auth0_oauth_token_body_I,\n\tpost_auth0_oauth_token_T, post_auth0_passwordless_start_body_T, post_auth0_passwordless_start_optional_body_T,\n\tpost_auth0_passwordless_start_T, signup_data_I\n} from '@ctx-core/auth0'\nimport type { auth0_ui_Ctx } from '../auth0_ui_Ctx.js'\nexport class Auth0_c {\n\tconstructor(protected ctx:auth0_ui_Ctx) {}\n\treadonly login_auth0_body_ = auth0_body__b</*@formatter:off*/\n\t\tauth0_ui_Ctx,\n\t\t'login_auth0_body_',\n\t\tlogin_data_password_realm_body_I\n\t/*@formatter:on*/>(this.ctx, 'login_auth0_body_')\n\treadonly login_password_realm_body_ = password_realm_body__b</*@formatter:off*/\n\t\tauth0_ui_Ctx,\n\t\t'login_password_realm_body_',\n\t\tlogin_data_password_realm_body_I\n/*@formatter:on*/>(\n\t\tthis.ctx,\n\t\t'login_password_realm_body_',\n\t\tthis.login_auth0_body_\n\t)\n\treadonly signup_auth0_body_:auth0_body__T<signup_data_password_realm_body_I> = auth0_body__b</*@formatter:off*/\n\t\tauth0_ui_Ctx,\n\t\t'signup_auth0_body_',\n\t\tsignup_data_password_realm_body_I\n\t/*@formatter:on*/>(this.ctx, 'signup_auth0_body_')\n\treadonly signup_password_realm_body_:password_realm_body__T<signup_data_password_realm_body_I> = password_realm_body__b</*@formatter:off*/\n\t\tauth0_ui_Ctx,\n\t\t'signup_password_realm_body_fn',\n\t\tsignup_data_password_realm_body_I\n\t/*@formatter:on*/>(\n\t\tthis.ctx, 'signup_password_realm_body_fn', this.signup_auth0_body_\n\t)\n\treadonly auth0_opened_class = auth0_opened_class$_b(this.ctx)\n\treadonly auth0_token_json$ = auth0_token_json$_b(this.ctx)\n\treadonly auth0_token_error = auth0_token_error$_b(this.ctx)\n\treadonly clear_auth0_token_error = clear_auth0_token_error_b(this.ctx)\n\treadonly close_auth0 = close_auth0_b(this.ctx)\n\treadonly logout_auth0_token_error:logout_auth0_token_error_T = logout_auth0_token_error_b(this.ctx)\n\treadonly open_auth0_login:open_auth0_login_T = open_auth0_login_b(this.ctx)\n\treadonly open_auth0_forgot_password_check_email:open_auth0_forgot_password_check_email_T = open_auth0_forgot_password_check_email_b(this.ctx)\n\treadonly post_auth0_dbconnections_signup:post_auth0_dbconnections_signup_T = post_auth0_dbconnections_signup_b(this.ctx)\n\treadonly post_auth0_oauth_token:post_auth0_oauth_token_T = post_auth0_oauth_token_b(this.ctx)\n\treadonly post_auth0_auth_change_password:post_auth0_auth_change_password_T = post_auth0_auth_change_password_b(this.ctx)\n\treadonly post_auth0_passwordless_start:post_auth0_passwordless_start_T = post_auth0_passwordless_start_b(this.ctx)\n\treadonly onMount = async (root:HTMLElement)=>{\n\t\tif (has_dom) {\n\t\t\tconst unsubscribe =\n\t\t\t\tsubscribe(this.auth0_opened_class, ()=>this.schedule_forms_clear(root))\n\t\t\tonDestroy(unsubscribe)\n\t\t}\n\t}\n\treadonly login = async (data:login_data_I, schedule_forms_clear = ()=>{})=>{\n\t\tconst response = await this.post_auth0_oauth_token(\n\t\t\tthis.login_password_realm_body_(data)\n\t\t)\n\t\tif (response.ok) {\n\t\t\tconst auth0_token_json = await response.text()\n\t\t\tthis.auth0_token_json$.$ = auth0_token_json\n\t\t\tschedule_forms_clear()\n\t\t\tthis.close_auth0()\n\t\t} else {\n\t\t\tconst $auth_token_error = await response.json()\n\t\t\tthis.auth0_token_error.$ = $auth_token_error\n\t\t\tthis.logout_auth0_token_error($auth_token_error)\n\t\t}\n\t}\n\treadonly signup = async (data:signup_data_I, schedule_forms_clear = ()=>{})=>{\n\t\tconst response = await this.post_auth0_dbconnections_signup(this.signup_password_realm_body_(data))\n\t\tconst auth0_userinfo = await response.json()\n\t\tconst { statusCode } = auth0_userinfo\n\t\tif (statusCode) {\n\t\t\tconst {\n\t\t\t\tcode,\n\t\t\t\tdescription\n\t\t\t} = auth0_userinfo\n\t\t\tconst email =\n\t\t\t\tcode === 'user_exists'\n\t\t\t\t? 'This Email is already signed up'\n\t\t\t\t: description\n\t\t\tconst auth0_token_error = { email }\n\t\t\tthis.logout_auth0_token_error(auth0_token_error)\n\t\t\treturn\n\t\t}\n\t\tschedule_forms_clear()\n\t\tawait this.login({\n\t\t\tusername: data.email,\n\t\t\tpassword: data.password,\n\t\t}, schedule_forms_clear)\n\t}\n\treadonly change_password = async (form:{ password:string }, schedule_forms_clear = ()=>{})=>{\n\t\tconst { password } = form\n\t\tlet error\n\t\ttry {\n\t\t\tconst response = await this.post_auth0_auth_change_password(password)\n\t\t\tconst response_json = await response.json()\n\t\t\tif (!response.ok) {\n\t\t\t\tif (response.status == 401) {\n\t\t\t\t\tthis.open_auth0_login()\n\t\t\t\t\tconst auth0_token_error = { email: 'Authentication Error - Log in' }\n\t\t\t\t\tthis.logout_auth0_token_error(auth0_token_error)\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\terror = response_json.error || 'Error changing Password'\n\t\t\t}\n\t\t} catch (e:any) {\n\t\t\tconsole.warn(e)\n\t\t\terror = e.message\n\t\t}\n\t\tif (error) {\n\t\t\tconst auth0_token_error = { password: error }\n\t\t\tthis.logout_auth0_token_error(auth0_token_error)\n\t\t\treturn\n\t\t}\n\t\tschedule_forms_clear()\n\t\tthis.close_auth0()\n\t}\n\treadonly schedule_forms_clear_:(root:HTMLElement)=>void = (root:HTMLElement)=>{\n\t\treturn ()=>this.schedule_forms_clear(root)\n\t}\n\treadonly schedule_forms_clear = (root:HTMLElement)=>{\n\t\tsetTimeout(()=>{\n\t\t\tthis.clear_auth0_token_error()\n\t\t\tclear_inputs(dom_a_('input[type=text]', root))\n\t\t\tclear_inputs(dom_a_('input[type=password]', root))\n\t\t}, 100)\n\t}\n\treadonly onsubmit_signup = async (event:Event, ctx:onsubmit_signup_Ctx, schedule_forms_clear = ()=>{})=>{\n\t\tevent.preventDefault()\n\t\tconst {\n\t\t\temail_input,\n\t\t\tpassword_input,\n\t\t\tpassword_confirmation_input,\n\t\t} = ctx\n\t\tconst email = email_input.value\n\t\tconst password = password_input.value\n\t\tconst password_confirmation = password_confirmation_input.value\n\t\tconst auth0_token_error =\n\t\t\tvalidate_auth0_signup({\n\t\t\t\temail,\n\t\t\t\tpassword,\n\t\t\t\tpassword_confirmation\n\t\t\t})\n\t\tif (auth0_token_error) {\n\t\t\tthis.logout_auth0_token_error(auth0_token_error)\n\t\t\treturn false\n\t\t}\n\t\tawait this.signup({\n\t\t\temail,\n\t\t\tpassword\n\t\t}, schedule_forms_clear)\n\t\treturn\n\t}\n\treadonly onsubmit_login = async (event:Event, ctx:onsubmit_login_Ctx, schedule_forms_clear = ()=>{})=>{\n\t\tevent.preventDefault()\n\t\tconst { username_login_input, password_login_input } = ctx\n\t\tconst username = username_login_input.value\n\t\tconst password = password_login_input.value\n\t\tawait this.login({ username, password }, schedule_forms_clear)\n\t}\n\treadonly onsubmit_forgot_password = async (event:Event, ctx:onsubmit_forgot_password_Ctx)=>{\n\t\tevent.preventDefault()\n\t\tconst { email_input } = ctx\n\t\tconst email = email_input.value\n\t\tconst data:post_auth0_passwordless_start_optional_body_T = {\n\t\t\tconnection: 'email',\n\t\t\tsend: 'link',\n\t\t\temail\n\t\t}\n\t\tconst auth0_token_error = validate_auth0_forgot_password(data)\n\t\tif (auth0_token_error) {\n\t\t\tthis.logout_auth0_token_error(auth0_token_error)\n\t\t\treturn\n\t\t}\n\t\tawait this.post_auth0_passwordless_start(\n\t\t\tthis.login_auth0_body_(data) as post_auth0_passwordless_start_body_T\n\t\t)\n\t\tthis.open_auth0_forgot_password_check_email()\n\t}\n\treadonly onsubmit_change_password = async (\n\t\tevent:Event, ctx:onsubmit_change_password_Ctx, schedule_forms_clear = ()=>{}\n\t)=>{\n\t\tevent.preventDefault()\n\t\tconst {\n\t\t\tpassword_input,\n\t\t\tpassword_confirmation_input,\n\t\t} = ctx\n\t\tconst password = password_input.value\n\t\tconst password_confirmation = password_confirmation_input.value\n\t\tconst auth0_token_error =\n\t\t\tvalidate_auth0_change_password(\n\t\t\t\t{\n\t\t\t\t\tpassword,\n\t\t\t\t\tpassword_confirmation\n\t\t\t\t})\n\t\tif (auth0_token_error) {\n\t\t\tthis.logout_auth0_token_error(auth0_token_error)\n\t\t\tthrow auth0_token_error\n\t\t}\n\t\treturn await this.change_password({ password }, schedule_forms_clear)\n\t}\n\treadonly onclose = async (event:MouseEvent)=>{\n\t\tevent.preventDefault()\n\t\tthis.close_auth0()\n\t}\n}\nfunction clear_inputs(inputs:NodeList) {\n\tfor (let i = 0; i < inputs.length; i++) {\n\t\tconst input = inputs[i] as HTMLInputElement\n\t\tinput.value = ''\n\t}\n}\nexport interface signup_data_password_realm_body_I\n\textends signup_data_I,\n\t\tauth0_client_id_body_I,\n\t\tpost_auth0_passwordless_start_body_T,\n\t\tpassword_realm_body_T,\n\t\tauth0_grant_type_body_I,\n\t\tpost_auth0_oauth_token_body_I {}\nexport interface login_data_password_realm_body_I\n\textends login_data_I,\n\t\tauth0_client_id_body_I,\n\t\tpost_auth0_passwordless_start_body_T,\n\t\tpassword_realm_body_T,\n\t\tauth0_grant_type_body_I,\n\t\tpost_auth0_oauth_token_body_I {}\nexport interface onsubmit_change_password_Ctx {\n\tpassword_input:HTMLInputElement\n\tpassword_confirmation_input:HTMLInputElement\n}\nexport interface onsubmit_forgot_password_Ctx {\n\temail_input:HTMLInputElement\n}\nexport interface onsubmit_login_Ctx {\n\tusername_login_input:HTMLInputElement\n\tpassword_login_input:HTMLInputElement\n}\nexport interface onsubmit_signup_Ctx {\n\temail_input:HTMLInputElement\n\tpassword_input:HTMLInputElement\n\tpassword_confirmation_input:HTMLInputElement\n}\n"],"names":["onDestroy","has_dom","dom_a_","subscribe","auth0_body__b","auth0_opened_class$_b","auth0_token_error$_b","auth0_token_json$_b","clear_auth0_token_error_b","close_auth0_b","logout_auth0_token_error_b","open_auth0_forgot_password_check_email_b","open_auth0_login_b","password_realm_body__b","post_auth0_auth_change_password_b","post_auth0_dbconnections_signup_b","post_auth0_oauth_token_b","post_auth0_passwordless_start_b","validate_auth0_change_password","validate_auth0_forgot_password","validate_auth0_signup","Auth0_c","login_auth0_body_","ctx","login_password_realm_body_","signup_auth0_body_","signup_password_realm_body_","auth0_opened_class","auth0_token_json$","auth0_token_error","clear_auth0_token_error","close_auth0","logout_auth0_token_error","open_auth0_login","open_auth0_forgot_password_check_email","post_auth0_dbconnections_signup","post_auth0_oauth_token","post_auth0_auth_change_password","post_auth0_passwordless_start","onMount","root","unsubscribe","schedule_forms_clear","login","data","response","ok","auth0_token_json","text","$","$auth_token_error","json","signup","auth0_userinfo","statusCode","code","description","email","username","password","change_password","form","error","response_json","status","e","console","warn","message","schedule_forms_clear_","setTimeout","clear_inputs","onsubmit_signup","event","preventDefault","email_input","password_input","password_confirmation_input","value","password_confirmation","onsubmit_login","username_login_input","password_login_input","onsubmit_forgot_password","connection","send","onsubmit_change_password","onclose","inputs","i","length","input"],"mappings":"AAAA,MAAM,GAAGA,SAAS,QAAQ,CAAQ;AAClC,MAAM,GAAGC,OAAO,EAAEC,MAAM,QAAQ,CAAe;AAC/C,MAAM,GAAGC,SAAS,QAAQ,CAAiB;AAC3C,MAAM,GACLC,aAAa,EAAEC,qBAAqB,EAAEC,oBAAoB,EAAEC,mBAAmB,EAAEC,yBAAyB,EAC1GC,aAAa,EAAEC,0BAA0B,EAAEC,wCAAwC,EAAEC,kBAAkB,EACvGC,sBAAsB,EAAEC,iCAAiC,EAAEC,iCAAiC,EAC5FC,wBAAwB,EAAEC,+BAA+B,EAAEC,8BAA8B,EACzFC,8BAA8B,EAAEC,qBAAq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,GAAGH,MAAM,CAACC,CAAC;QACtBE,KAAK,CAACb,KAAK,GAAG,CAAE;IACjB,CAAC;AACF,CAAC"}
|
package/dist/ui/index.js
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import 'svelte';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
export {
|
|
2
|
+
import * as _Auth0 from './Auth0.svelte';
|
|
3
|
+
import * as _Auth0_Dialog_Close from './Auth0_Dialog_Close.svelte';
|
|
4
|
+
import * as _Auth0_Change_Password_Form from './Auth0_Change_Password_Form.svelte';
|
|
5
|
+
import * as _Auth0_Forgot_Password_Check_Email_Form from './Auth0_Forgot_Password_Check_Email_Form.svelte';
|
|
6
|
+
import * as _Auth0_Forgot_Password_Form from './Auth0_Forgot_Password_Form.svelte';
|
|
7
|
+
import * as _Auth0_Login_Form from './Auth0_Login_Form.svelte';
|
|
8
|
+
import * as _Auth0_Signup_Form from './Auth0_Signup_Form.svelte';
|
|
9
|
+
import * as _Auth0_Loggedin_If from './Auth0_Loggedin_If.svelte';
|
|
10
|
+
export { _Auth0 as Auth0 };
|
|
11
|
+
export { _Auth0_Dialog_Close as Auth0_Dialog_Close };
|
|
12
|
+
export { _Auth0_Change_Password_Form as Auth0_Change_Password_Form };
|
|
13
|
+
export { _Auth0_Forgot_Password_Check_Email_Form as Auth0_Forgot_Password_Check_Email_Form };
|
|
14
|
+
export { _Auth0_Forgot_Password_Form as Auth0_Forgot_Password_Form };
|
|
15
|
+
export { _Auth0_Login_Form as Auth0_Login_Form };
|
|
16
|
+
export { _Auth0_Signup_Form as Auth0_Signup_Form };
|
|
17
|
+
export { _Auth0_Loggedin_If as Auth0_Loggedin_If };
|
|
18
|
+
|
|
11
19
|
//# sourceMappingURL=index.js.map
|
package/dist/ui/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/ui/index.ts"],"sourcesContent":["import 'svelte'\nexport * as Auth0 from './Auth0.svelte'\nexport * as Auth0_Dialog_Close from './Auth0_Dialog_Close.svelte'\nexport * as Auth0_Change_Password_Form from './Auth0_Change_Password_Form.svelte'\nexport * as Auth0_Forgot_Password_Check_Email_Form from './Auth0_Forgot_Password_Check_Email_Form.svelte'\nexport * as Auth0_Forgot_Password_Form from './Auth0_Forgot_Password_Form.svelte'\nexport * as Auth0_Login_Form from './Auth0_Login_Form.svelte'\nexport * as Auth0_Signup_Form from './Auth0_Signup_Form.svelte'\nexport * as Auth0_Loggedin_If from './Auth0_Loggedin_If.svelte'\n"],"names":["Auth0","Auth0_Dialog_Close","Auth0_Change_Password_Form","Auth0_Forgot_Password_Check_Email_Form","Auth0_Forgot_Password_Form","Auth0_Login_Form","Auth0_Signup_Form","Auth0_Loggedin_If"],"mappings":"AAAA,MAAM,CAAC,CAAQ;YACHA,MAAK,MAAM,CAAgB;YAC3BC,mBAAkB,MAAM,CAA6B;YACrDC,2BAA0B,MAAM,CAAqC;YACrEC,uCAAsC,MAAM,CAAiD;YAC7FC,2BAA0B,MAAM,CAAqC;YACrEC,iBAAgB,MAAM,CAA2B;YACjDC,kBAAiB,MAAM,CAA4B;YACnDC,kBAAiB,MAAM,CAA4B;SAPnDP,MAAK,IAALA,KAAK;SACLC,mBAAkB,IAAlBA,kBAAkB;SAClBC,2BAA0B,IAA1BA,0BAA0B;SAC1BC,uCAAsC,IAAtCA,sCAAsC;SACtCC,2BAA0B,IAA1BA,0BAA0B;SAC1BC,iBAAgB,IAAhBA,gBAAgB;SAChBC,kBAAiB,IAAjBA,iBAAiB;SACjBC,kBAAiB,IAAjBA,iBAAiB"}
|