-
I have multiple API services, and I’m wondering if I need to add authentication headers, Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @B3K4682, You can create a Dio
Then, add it to the api services you need it in
|
Beta Was this translation helpful? Give feedback.
-
Thanks, I've already figured it out |
Beta Was this translation helpful? Give feedback.
Hi @B3K4682,
You can create a Dio
Interceptor
to automatically add it to your http headers.metro make:interceptor AddBearerToken
Then, add it to the api services you need it in