setBearerToken method
Set a bearer token headers
to the baseOptions variable.
Implementation
setBearerToken(String bearerToken) {
_api.options.headers.addAll({"Authorization": "Bearer $bearerToken"});
}
Set a bearer token headers
to the baseOptions variable.
setBearerToken(String bearerToken) {
_api.options.headers.addAll({"Authorization": "Bearer $bearerToken"});
}