about summary refs log tree commit diff
path: root/src/components/Portal.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-05-01 02:55:43 +0100
committerGitHub <noreply@github.com>2024-05-01 02:55:43 +0100
commit39807a86309ccfeeffbd054808c0e78e42ff940e (patch)
tree43e5bd4d79c127aad384317ce177bbec70a6ec06 /src/components/Portal.tsx
parent66ad5543f1fb74c8e75edba7d626cdeeb8297d44 (diff)
downloadvoidsky-39807a86309ccfeeffbd054808c0e78e42ff940e.tar.zst
[Session] Refactor to prepare for V2 (#3781)
* Move types to another file

Co-authored-by: dan <dan.abramov@gmail.com>

* Move utilities out

Co-authored-by: dan <dan.abramov@gmail.com>

* Move PUBLIC_BSKY_AGENT

Co-authored-by: dan <dan.abramov@gmail.com>

* Move createPersistSessionHandler inline

Co-authored-by: dan <dan.abramov@gmail.com>

* Call configureModeration when clearing account too

This ensures that the app labelers get reset in a test environment.

Co-authored-by: dan <dan.abramov@gmail.com>

* Make guest configureModeration sync, non-guest async

* Extract isSessionExpired

Co-authored-by: dan <dan.abramov@gmail.com>

* Flip isSessionExpired condition

Co-authored-by: dan <dan.abramov@gmail.com>

* Extract agentToSessionAccount

Co-authored-by: dan <dan.abramov@gmail.com>

* Extract createAgent*

Co-authored-by: dan <dan.abramov@gmail.com>

* Simplify isSessionExpired

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/components/Portal.tsx')
0 files changed, 0 insertions, 0 deletions