mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Authorization token is null in gatsby plugin (#5848)
It creates a 401 unauthorized when trying to use a token :)
This commit is contained in:
@@ -144,7 +144,7 @@ exports.sourceNodes = async (gatsby, options) => {
|
||||
}
|
||||
|
||||
return Object.assign(obj, {
|
||||
Authorization: `Bearer ${directus.auth.token}`,
|
||||
Authorization: `Bearer ${auth?.token}`,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user