mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 05:37:20 +01:00
Use next-basics package.
This commit is contained in:
parent
1a6af8fc41
commit
f4e0da481e
62 changed files with 255 additions and 373 deletions
8
lib/security.js
Normal file
8
lib/security.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { getItem } from 'next-basics';
|
||||
import { AUTH_TOKEN } from './constants';
|
||||
|
||||
export function getAuthHeader() {
|
||||
const token = getItem(AUTH_TOKEN);
|
||||
|
||||
return token ? { authorization: `Bearer ${token}` } : {};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue