mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-04 18:30:26 +01:00
refactor(delegate): Split AuthenticatorDelegate to have FlowDelegate
This commit is contained in:
@@ -134,7 +134,9 @@ pub trait AuthenticatorDelegate: Clone {
|
||||
let _ = error_description;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub trait FlowDelegate: Clone {
|
||||
/// Called as long as we are waiting for the user to authorize us.
|
||||
/// Can be used to print progress information, or decide to time-out.
|
||||
///
|
||||
@@ -150,7 +152,6 @@ pub trait AuthenticatorDelegate: Clone {
|
||||
fn redirect_uri(&self) -> Option<String> {
|
||||
None
|
||||
}
|
||||
|
||||
/// The server has returned a `user_code` which must be shown to the user,
|
||||
/// along with the `verification_url`.
|
||||
/// # Notes
|
||||
|
||||
Reference in New Issue
Block a user