Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0797deb
improv: add an improved way of refreshing the session during SSR
bcbogdan Feb 3, 2025
5bfbbd1
check server actions
bcbogdan Mar 6, 2025
3b1973c
Add authenticate HOF for server actions
bcbogdan May 1, 2025
0c1ecca
Update examples
bcbogdan May 7, 2025
deccb9c
Code review fixes
bcbogdan May 20, 2025
f781088
Merge branch 'master' into feat/nextjs-ssr
bcbogdan May 21, 2025
ddcc439
Merge branch '0.50' into feat/nextjs-ssr
bcbogdan Aug 18, 2025
29685a6
fix: Fix token management during ssr in header based setups
bcbogdan Aug 19, 2025
bd3c991
test: Add nextjs e2e tests
bcbogdan Aug 28, 2025
77ee188
test: Extend e2e tests
bcbogdan Sep 2, 2025
bfa3607
fix: Linting fixes
bcbogdan Sep 2, 2025
4b0cb5d
chore: Update changelog
bcbogdan Sep 2, 2025
955e4cd
fix: Move jwtVerify to a separate file and remove jose
bcbogdan Sep 3, 2025
f7dddce
fix: Fix prune errors
bcbogdan Sep 3, 2025
19115da
ci: Update core docker image
bcbogdan Sep 3, 2025
fde0f49
chore: Remove comments
bcbogdan Sep 3, 2025
f3411f1
fix: Fix exports to make tests work
bcbogdan Sep 4, 2025
7a5630a
test: Update CI testing
bcbogdan Sep 10, 2025
3eaa59d
fix: Code review fixes
bcbogdan Oct 2, 2025
8ae42df
fix: Use the correct path for the refresh token cookie
bcbogdan Oct 16, 2025
1ce9d0b
fix: Update naming to underline lack of claim validation
bcbogdan Oct 21, 2025
99543fb
fix: Include requireAuth in the getServerActionSession function
bcbogdan Oct 21, 2025
bbd2287
test: Fix flaky tests
bcbogdan Oct 21, 2025
4d83718
fix: Fix function names
bcbogdan Oct 22, 2025
75048f3
fix: review fixes
porcellus Oct 22, 2025
c503a3c
chore: update size limit
porcellus Oct 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/for-tests-nextjs/app/actions/protectedAction.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
"use server";

import { cookies } from "next/headers";
import { getServerActionSession, init } from "supertokens-auth-react/nextjs/ssr";
import { getServerActionSessionWithoutClaims, init } from "supertokens-auth-react/nextjs/ssr";
import { ssrConfig } from "../config/ssr";

init(ssrConfig());

export async function protectedAction() {
const cookiesStore = await cookies();
const { status, session } = await getServerActionSession(cookiesStore);
const { status, session } = await getServerActionSessionWithoutClaims(cookiesStore);

if (status !== "valid") {
return { status, userId: undefined };
Expand Down
4 changes: 2 additions & 2 deletions examples/for-tests-nextjs/app/components/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { CallAPIButton } from "./callApiButton";
import { LinksComponent } from "./linksComponent";
import { SessionAuthForNextJS } from "./sessionAuthForNextJS";

import { getServerComponentSession, init } from "supertokens-auth-react/nextjs/ssr";
import { getServerComponentSessionWithoutClaims, init } from "supertokens-auth-react/nextjs/ssr";
import { ssrConfig } from "../config/ssr";
import { useState } from "react";
import { MiddlewareServerActionButton } from "./middlewareServerActionButton";
Expand All @@ -18,7 +18,7 @@ init(ssrConfig());

export async function HomePage() {
const cookiesStore = await cookies();
const session = await getServerComponentSession(cookiesStore);
const session = await getServerComponentSessionWithoutClaims(cookiesStore);

return (
<SessionAuthForNextJS>
Expand Down
18 changes: 12 additions & 6 deletions lib/build/constants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions lib/build/nextjs/constants.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions lib/build/nextjs/ssr.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 3 additions & 10 deletions lib/build/nextjs/types.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading