-
๐ญ Iโm currently freelancing and pursuing a career in Developer Relations
-
๐ฑ Iโm currently learning Mathematics for Computer Science. Preparing to pursue a Bachelor's Degree in Computer Science
-
๐ I regularly write articles on DEV and my personal blog
-
๐ฌ Ask me about anything really
-
๐ซ How to reach me [email protected]
-
๐ Know about my experiences https://www.linkedin.com/in/daryllukas/
msal-next-auth's Introduction
msal-next-auth's People
msal-next-auth's Issues
.env variables undefined in msal.js script possibly in later versions of Next.js
Thank you for this repo code! It was super helpful. I used your code in a Next v12 project and found I had to modify the next.config.js
script to export my env variables for them to be accessible within the msal.js
script.
I thought I would include this in the event others run into the same problem.
next.config.js
env export
module.exports = {
// must include this in order to use environment variables in the msal.js file
env: {
MS_GRAPH_CLIENT_ID: process.env.MS_GRAPH_CLIENT_ID,
MS_GRAPH_TENANT: process.env.MS_GRAPH_TENANT,
MS_GRAPH_REDIRECT_URI: process.env.MS_GRAPH_REDIRECT_URI,
MS_CLOUD_INSTANCE: process.env.MS_CLOUD_INSTANCE
},
}
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.