Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
mfshao committed Jun 5, 2024
1 parent be241c9 commit a24a5ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bmh_admin_portal_ui/src/util/auth.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
purposes.
*/

import axios from 'axios';
import { getAccessToken, refresh, logout } from './oidc';
import config from '../config.json';

const axios = require('axios').default;
const resources = config['authorization']['resources']

export const authorizeLogin = async () => {
Expand Down
2 changes: 1 addition & 1 deletion bmh_admin_portal_ui/src/util/oidc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

import jwt_decode from 'jwt-decode';
import { v4 as uuidv4 } from 'uuid';
import axios from 'axios';

import config from '../config.json';

const axios = require('axios').default;

export const isAuthenticated = () => {
const access_token = getAccessToken();
Expand Down

0 comments on commit a24a5ac

Please sign in to comment.