ekzyis
051ba7397a
Fix TypeError if switching to anon on /settings
2024-01-06 22:05:20 +01:00
ekzyis
31dec0eee6
Remove unnecessary header
2024-01-06 22:05:20 +01:00
ekzyis
dbf1fbb6b8
Filter auth methods by multi auth support
2024-01-06 22:05:20 +01:00
ekzyis
31cfd22480
Remove console.log
2024-01-06 22:05:20 +01:00
ekzyis
7f1275a2e6
Download image
...
Source: https://imgs.search.brave.com/t8qv-83e1m_kaajLJoJ0GNID5ch0WvBGmy7Pkyr4kQY/rs:fit:860:0:0/g:ce/aHR0cHM6Ly91cGxv/YWQud2lraW1lZGlh/Lm9yZy93aWtpcGVk/aWEvY29tbW9ucy84/Lzg5L1BvcnRyYWl0/X1BsYWNlaG9sZGVy/LnBuZw
2024-01-06 22:05:20 +01:00
ekzyis
c480fd450b
Cleanup multi_auth.* cookies if no next account available
2024-01-06 22:05:20 +01:00
ekzyis
c235ca3fe7
Select next available account on signOut
2024-01-06 22:05:20 +01:00
ekzyis
58a1ee929b
Refactor multiAuthMiddleware
2024-01-06 22:05:20 +01:00
ekzyis
64e176ce1d
Fix hooks called in inconsistent order
2024-01-06 22:05:20 +01:00
ekzyis
3bb24652b3
Add Path=/ to pointer cookie
2024-01-06 22:05:20 +01:00
ekzyis
260c97624b
Reset cookie pointer on signout
2024-01-06 22:05:20 +01:00
ekzyis
111d5ea610
Fix false returned in useEffect
2024-01-06 22:05:20 +01:00
ekzyis
fca2ec3e15
Fix multiAuth type
...
getServerSideProps of /login can only return JSON serializable props which will always be strings.
2024-01-06 22:05:20 +01:00
ekzyis
9baf5063e1
Never update account if multi auth is used
2024-01-06 22:05:20 +01:00
ekzyis
0caa517cd5
Use secure cookie
2024-01-06 22:05:20 +01:00
ekzyis
aae0d3765a
Support nostr multiAuth
2024-01-06 22:05:20 +01:00
ekzyis
4c5e470caf
Fix typo
2024-01-06 22:05:20 +01:00
ekzyis
369328da15
Fetch nym and photoId
2024-01-06 22:05:20 +01:00
ekzyis
c610f20773
Fix stale me used on switch to anon
2024-01-06 22:05:20 +01:00
ekzyis
d0a47fd304
Formatting
2024-01-06 22:05:20 +01:00
ekzyis
01fe205350
Use function to set multi auth cookies
...
* set multi auth cookie in jwt callback
* don't overwrite existing multi auth cookies
2024-01-06 22:05:20 +01:00
ekzyis
78e50be2f7
Fix document not defined
2024-01-06 22:05:20 +01:00
ekzyis
b8243f8a87
Update lurker corner to switch back to session
2024-01-06 22:05:20 +01:00
ekzyis
24168f556e
Use base64 encoding for multi_auth cookie
2024-01-06 22:05:20 +01:00
ekzyis
470e0dfc7a
Account switching
2024-01-06 22:05:19 +01:00
keyan
5137f1423d
change reply placeholder
2024-01-04 18:48:10 -06:00
ekzyis
045ba28c41
Remove logging to browser ( #733 )
...
* Don't log to browser console
* Don't log options (too verbose)
---------
Co-authored-by: ekzyis <ek@stacker.news>
2024-01-04 13:53:52 -06:00
ekzyis
4d953fc3a9
Fix invalid DOM property ( #732 )
...
Code works but it prints a warning in the console:
> Warning: Invalid DOM property `autocomplete`. Did you mean `autoComplete`?
Co-authored-by: ekzyis <ek@stacker.news>
2024-01-04 11:17:57 -06:00
keyan
48e9cdef64
default to server provided sub name
2024-01-03 21:15:54 -06:00
keyan
6495ce9454
keep citext cast from 8996fd0
2024-01-03 21:02:04 -06:00
keyan
29a8640493
deal with territory case using clientside redirect
2024-01-03 20:51:01 -06:00
keyan
26e0dd6f7e
Revert "fix #703 "
...
This reverts commit 8996fd085a
.
2024-01-03 20:39:26 -06:00
keyan
6a600c2043
fix null sub in select
2024-01-03 19:45:30 -06:00
keyan
40aa64546a
indicate safari instructions in ios pwa prompt
2024-01-03 16:32:18 -06:00
ekzyis
31a40e15be
refactor delete notification ( #731 )
...
Co-authored-by: ekzyis <ek@stacker.news>
2024-01-03 16:24:46 -06:00
keyan
8996fd085a
fix #703
2024-01-03 16:12:33 -06:00
keyan
717f8d1ef6
territory billing notifications
2024-01-03 15:20:10 -06:00
ekzyis
562b243111
Fix usage of hardcoded strings for sw message types ( #730 )
...
Co-authored-by: ekzyis <ek@stacker.news>
2024-01-03 14:02:01 -06:00
ekzyis
31cef5a7b7
Only close notifications manually on iOS ( #729 )
...
* Only close notifications manually on iOS
* Use function instead of hardcoded string
---------
Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com>
2024-01-03 11:56:29 -06:00
ekzyis
ade35b9ea0
Add verbose logging in onPush listener ( #724 )
...
* refactor: Use log function in service worker
* Add verbose logging on push listener
* Fix TypeError: Cannot read properties of null (reading 'postMessage')
navigator.serviceWorker.controller is null on forced refreshes:
"""
This property returns null if the request is a force refresh (Shift + refresh) or if there is no active worker.
"""
-- https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/controller
This means when we unregister a service worker manually (like I do for debugging purposes) and then reload the page, there is no service worker available when this code is run.
Adding a check with a more helpful error message should improve UX.
This error might also happen in other cases where a page refresh should also help.
---------
Co-authored-by: ekzyis <ek@stacker.news>
2024-01-03 11:51:04 -06:00
keyan
c597acfb8f
add mempool link
2024-01-02 16:35:01 -06:00
keyan
c96d01e23a
add sanctioned country codes
2024-01-02 16:05:07 -06:00
keyan
240ac3497d
refine territory mutes
2023-12-31 10:52:19 -06:00
keyan
76b63240db
fix territory mutes for logged out
2023-12-30 19:45:41 -06:00
keyan
0999004646
mute territories in overflow
2023-12-30 19:41:16 -06:00
keyan
9ab1d770eb
remove debug log statement
2023-12-30 18:43:41 -06:00
keyan
f267137662
add muted section to territory select
2023-12-30 18:19:42 -06:00
keyan
214e863458
mute territories
2023-12-30 17:16:09 -06:00
keyan
baee771d67
add gofacurself grace period
2023-12-30 17:15:21 -06:00
ekzyis
3a0c50566b
Fix TypeError (reading 'moderated') ( #722 )
...
Co-authored-by: ekzyis <ek@stacker.news>
2023-12-30 14:40:06 -06:00