Skip to content

Commit aa0f397

Browse files
Fixed a redundant return statement in isLoggedIn() & a typo (#5194)
Signed-off-by: Captain Unknown <79987654+CaptainUnknown@users.noreply.github.com>
1 parent 7185364 commit aa0f397

File tree

1 file changed

+2
-5
lines changed
  • apps/portal/src/app/connect/auth/frameworks/next

1 file changed

+2
-5
lines changed

apps/portal/src/app/connect/auth/frameworks/next/page.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,7 @@ export async function isLoggedIn() {
261261
}
262262

263263
const authResult = await thirdwebAuth.verifyJWT({ jwt: jwt.value });
264-
if (!authResult.valid) {
265-
return false;
266-
}
267-
return true;
264+
return authResult.valid;
268265
}
269266

270267
export async function logout() {
@@ -306,7 +303,7 @@ const AuthenticatedPage = async () => {
306303
export default AuthenticatedPage;
307304
```
308305

309-
That's it! You know have a working SIWE Next.js app.
306+
That's it! You now have a working SIWE Next.js app.
310307

311308
## Support
312309

0 commit comments

Comments
 (0)