Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: utilize next auth to manage the auth and sessions #110

Merged
merged 5 commits into from
Sep 12, 2023

Conversation

NithinKuruba
Copy link
Contributor

Fixes SSOTEAM-879

@@ -9,8 +9,7 @@ const instance = axios.create({

instance?.interceptors.request.use(
async function (config) {
const appToken = store2.session.get('app-token');
return { ...config, headers: { ...config.headers, Authorization: `Bearer ${appToken}` } };
return { ...config, headers: { ...config.headers } };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the token now handled by the headers before this step?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thegentlemanphysicist The endpoints are now protected by next-auth strategy, where we look at the session object for authorization and we do not need authorization header anymore

@NithinKuruba NithinKuruba merged commit f0b903d into dev Sep 12, 2023
2 checks passed
@NithinKuruba NithinKuruba deleted the feat/SSOTEAM-497-02 branch September 12, 2023 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants