@rpcbase/client 0.86.0 → 0.88.0
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/auth/ForgotPassword/index.js +0 -1
- package/auth/SetNewPassword/index.js +3 -4
- package/auth/SignIn/index.js +0 -1
- package/auth/SignOut/index.js +10 -14
- package/auth/SignUp/index.js +0 -1
- package/auth/index.js +2 -0
- package/auth/sign_out.js +12 -0
- package/package.json +1 -1
|
@@ -22,9 +22,9 @@ const SetNewPassword = ({name, logo}) => {
|
|
|
22
22
|
const user_id = useSearchParam("uid")
|
|
23
23
|
const token = useSearchParam("token")
|
|
24
24
|
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
|
|
27
|
-
}, [user_id, token])
|
|
25
|
+
// useEffect(() => {
|
|
26
|
+
// console.log("TOKEN", user_id, token)
|
|
27
|
+
// }, [user_id, token])
|
|
28
28
|
|
|
29
29
|
const onSubmit = async(e) => {
|
|
30
30
|
e.preventDefault()
|
|
@@ -67,7 +67,6 @@ const SetNewPassword = ({name, logo}) => {
|
|
|
67
67
|
<div>
|
|
68
68
|
<div className="d-flex align-items-center justify-content-center">
|
|
69
69
|
{logo}
|
|
70
|
-
<span className="ms-1 fs-4">{name}</span>
|
|
71
70
|
</div>
|
|
72
71
|
|
|
73
72
|
<hr />
|
package/auth/SignIn/index.js
CHANGED
package/auth/SignOut/index.js
CHANGED
|
@@ -5,9 +5,10 @@ import {ActivityIndicator} from "react-native"
|
|
|
5
5
|
import Alert from "react-bootstrap/Alert"
|
|
6
6
|
import page from "page"
|
|
7
7
|
|
|
8
|
+
import {sign_out} from "../sign_out"
|
|
9
|
+
|
|
8
10
|
import post from "../../helpers/post"
|
|
9
11
|
|
|
10
|
-
import {set_is_signed_in, set_uid} from "../index"
|
|
11
12
|
import AccountListItem from "../AccountsList/AccountListItem"
|
|
12
13
|
import Footer from "../Footer"
|
|
13
14
|
|
|
@@ -42,11 +43,7 @@ const SignOut = ({
|
|
|
42
43
|
const signOut = async() => {
|
|
43
44
|
const res = await post("/api/v1/auth/sign_out")
|
|
44
45
|
if (res.status === "ok") {
|
|
45
|
-
|
|
46
|
-
set_is_signed_in(false)
|
|
47
|
-
localStorage.clear()
|
|
48
|
-
|
|
49
|
-
// TODO: clear DB
|
|
46
|
+
sign_out()
|
|
50
47
|
setIsSignedOut(true)
|
|
51
48
|
onSuccess()
|
|
52
49
|
} else {
|
|
@@ -56,19 +53,12 @@ const SignOut = ({
|
|
|
56
53
|
|
|
57
54
|
|
|
58
55
|
const onSubmit = () => {
|
|
56
|
+
console.log("sign out from selected accounts", selectedAccounts)
|
|
59
57
|
signOut()
|
|
60
|
-
console.log("SEL", selectedAccounts)
|
|
61
58
|
}
|
|
62
59
|
|
|
63
60
|
return (
|
|
64
61
|
<div id="sign-out-wrapper">
|
|
65
|
-
<div className="d-flex align-items-center justify-content-center">
|
|
66
|
-
{logo}
|
|
67
|
-
<span className="ms-1 fs-4">{name}</span>
|
|
68
|
-
</div>
|
|
69
|
-
|
|
70
|
-
<hr />
|
|
71
|
-
|
|
72
62
|
|
|
73
63
|
{isSignedOut && (
|
|
74
64
|
<Alert variant="light" data-bs-theme="dark" style={{maxWidth: 260, position: "absolute"}} onClose={() => setIsSignedOut(false)} dismissible>
|
|
@@ -79,6 +69,12 @@ const SignOut = ({
|
|
|
79
69
|
{accounts ? (
|
|
80
70
|
<div className="form-signout text-center px-4 py-4 shadow-lg">
|
|
81
71
|
|
|
72
|
+
<div className="d-flex align-items-center justify-content-center">
|
|
73
|
+
{logo}
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<hr />
|
|
77
|
+
|
|
82
78
|
<h1 className="h4 mt-3 mb-3 fw-normal">Sign Out</h1>
|
|
83
79
|
|
|
84
80
|
{Array.isArray(accounts) && accounts.length > 0 && (
|
package/auth/SignUp/index.js
CHANGED
package/auth/index.js
CHANGED
package/auth/sign_out.js
ADDED