Skip to content

Next.Js SSR support example #5038

Open
Open
@gitmurali

Description

@gitmurali

Core Library

MSAL.js v2 (@azure/msal-browser), MSAL.js v1 (@azure/msal or msal), MSAL Node (@azure/msal-node)

Wrapper Library

MSAL React (@azure/msal-react)

Description

I was using msal-node library and I was trying to make it work with Next.JS SSR following these docs here https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-node

but unfortunately I'm getting different errors for example like

ClientAuthError: invalid_client_credential: Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential

I would like to request to include an example which shows how to use MSAL on Server side rendering with Next.Js.

Source

External (Customer)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature requests.msal-browserRelated to msal-browser packagemsal-nodeRelated to msal-node packagemsal-reactRelated to @azure/msal-reacttracked-internallyBugs that are tracked by Msft internally

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions