Skip to content

Commit 80537fe

Browse files
committed
Remove stale links
1 parent bfd13c3 commit 80537fe

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

packages/session/src/lib/session.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ describe('Cookie session storage', () => {
194194
assert.equal(warnings.length, 1)
195195
assert.equal(
196196
warnings[0],
197-
'The "__session" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.',
197+
'The "__session" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server.',
198198
)
199199
console.warn = originalWarn
200200
})

packages/session/src/lib/session.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ export interface SessionData {
1313

1414
/**
1515
* Session persists data across HTTP requests.
16-
*
17-
* @see https://reactrouter.com/explanation/sessions-and-cookies#sessions
1816
*/
1917
export interface Session<Data = SessionData, FlashData = Data> {
2018
/**
@@ -133,9 +131,7 @@ export const createSession: CreateSessionFunction = <Data = SessionData, FlashDa
133131
type IsSessionFunction = (object: any) => object is Session
134132

135133
/**
136-
* Returns true if an object is a React Router session.
137-
*
138-
* @see https://reactrouter.com/api/utils/isSession
134+
* Returns true if an object is a Remix session.
139135
*/
140136
export const isSession: IsSessionFunction = (object): object is Session => {
141137
return (
@@ -276,7 +272,6 @@ export function warnOnceAboutSigningSessionCookie(cookie: Cookie) {
276272
cookie.isSigned,
277273
`The "${cookie.name}" cookie is not signed, but session cookies should be ` +
278274
`signed to prevent tampering on the client before they are sent back to the ` +
279-
`server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies ` +
280-
`for more information.`,
275+
`server.`,
281276
)
282277
}

0 commit comments

Comments
 (0)