setAuth method
Updates the authorization header
token
- the new jwt token sent in the authorisation header
Implementation
void setAuth(String token) {
_headers['Authorization'] = 'Bearer $token';
}
Updates the authorization header
token
- the new jwt token sent in the authorisation header
void setAuth(String token) {
_headers['Authorization'] = 'Bearer $token';
}