refreshIfNeeded method
Alias for getValidToken with a name that reads more naturally at call sites that don't immediately consume the returned token (e.g. background warmups or pre-flight checks).
Behaviour is identical: returns the current token if still valid, otherwise runs a single-flight refresh.
Implementation
Future<Result<Token>> refreshIfNeeded() => getValidToken();