mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
refactor(nestjs): hook up auth endpoints
This commit is contained in:
@@ -30,7 +30,7 @@ export default function useApiRequest() {
|
||||
const locale = currentLocale;
|
||||
|
||||
if (token) {
|
||||
request.headers['X-Access-Token'] = token;
|
||||
request.headers['Authorization'] = `Bearer ${token}`;
|
||||
}
|
||||
if (organizationId) {
|
||||
request.headers['organization-id'] = organizationId;
|
||||
|
||||
Reference in New Issue
Block a user