Skip to content

Commit

Permalink
Merge pull request #130 from gsainfoteam/use-local-idp-only-development
Browse files Browse the repository at this point in the history
chore: use local idp on only development mode
  • Loading branch information
2paperstar authored Nov 15, 2023
2 parents a0bde84 + e436214 commit 4feed36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/auth/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import api from '..';
export const getToken = (code: string) =>
api
.get<{ access_token: string }>('/user/login', {
params: { code, type: 'local' },
params: {
code,
...(process.env.NODE_ENV === 'development' && { type: 'local' }),
},
})
.then(({ data, headers }) => {
const refreshToken = headers['set-cookie']
Expand Down

0 comments on commit 4feed36

Please sign in to comment.