alpha
Login
or
Join now
nandi.uk
/
semble
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Merge branch 'development'
author
pdelfan
date
4 months ago
(Mar 2, 2026, 11:33 AM -0800)
commit
28665408
2866540810e2f04a59386fecdc4a731dde698cdb
parent
d36b3ab2
d36b3ab2cf7504743252be8281b110bc7fdaabf9
+19
2 changed files
Expand all
Collapse all
Unified
Split
src
webapp
app
(auth)
login
loading.tsx
lib
auth
dal.server.ts
+9
src/webapp/app/(auth)/login/loading.tsx
View file
Reviewed
···
1
1
+
import { Loader, Stack } from '@mantine/core';
2
2
+
3
3
+
export default function Loading() {
4
4
+
return (
5
5
+
<Stack align="center">
6
6
+
<Loader type="dots" />
7
7
+
</Stack>
8
8
+
);
9
9
+
}
+10
src/webapp/lib/auth/dal.server.ts
View file
Reviewed
···
11
11
12
12
export const verifySessionOnServer = cache(async (options?: Options) => {
13
13
const cookieStore = await cookies();
14
14
+
const accessToken = cookieStore.get('accessToken')?.value;
15
15
+
const refreshToken = cookieStore.get('refreshToken')?.value;
16
16
+
17
17
+
// tokens are missing
18
18
+
if (!accessToken || !refreshToken) {
19
19
+
if (options?.redirectOnFail) {
20
20
+
redirect('/login');
21
21
+
}
22
22
+
return null;
23
23
+
}
14
24
15
25
const res = await fetch(`${appUrl}/api/auth/me`, {
16
26
headers: {