Skip to content

Clarification on Server Side Rendering (SSR) for React #7826

Open
@Robstei

Description

@Robstei

Core Library

No response

Wrapper Library

MSAL React (@azure/msal-react)

Public or Confidential Client?

Public

Documentation Location

#5038 (comment)

Description

Hi,

It seems like the docs and the comments in issues are contradicting each other regarding SSR in react.

While the docs say that SSR is supported

As stated here there is no support for SSR.

Here it says that Cookies are supported.

While following the link to the options says that all cookie related options are deprecated.

My current understanding is that SSR without Cookies is not possible since the request needs to be checked server side in order to immediately create the correct html.

Is my assertion correct that SSR is not supported? How would I read the token server side from the request otherwise.

I am using react router v7 in framework mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackAwaiting response from issue authordocumentationRelated to documentation.msal-reactRelated to @azure/msal-reactno-issue-activityIssue author has not responded in 5 dayspublic-clientIssues regarding PublicClientApplicationsquestionCustomer is asking for a clarification, use case or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions