tangled
alpha
login
or
join now
yoyle.city
/
skitpic
3
fork
atom
AT Protocol-powered Twitpic revival
atproto
express
typescript
photo-sharing
3
fork
atom
overview
issues
pulls
pipelines
fix
lime360
2 months ago
a80c0fe5
b7092f3a
+2
-2
1 changed file
expand all
collapse all
unified
split
src
index.ts
+2
-2
src/index.ts
···
66
66
}),
67
67
);
68
68
69
69
-
app.use((req: Request, res: Response, next: NextFunction) => {
69
69
+
app.use(async (req: Request, res: Response, next: NextFunction) => {
70
70
const agent = new AtpAgent({
71
71
service: req.session.pds || "https://bsky.social",
72
72
persistSession: (e: AtpSessionEvent, s?: AtpSessionData) => {
···
80
80
81
81
if (req.session.atp) {
82
82
try {
83
83
-
agent.resumeSession(req.session.atp);
83
83
+
await agent.resumeSession(req.session.atp);
84
84
} catch (error) {
85
85
console.error(error);
86
86
delete req.session.atp;