oauth_axum/providers/
facebook.rs

1use crate::CustomProvider;
2
3pub struct FacebookProvider {}
4
5impl FacebookProvider {
6    pub fn new(client_id: String, client_secret: String, redirect_url: String) -> CustomProvider {
7        CustomProvider::new(
8            String::from("https://www.facebook.com/v19.0/dialog/oauth"),
9            String::from("https://graph.facebook.com/v19.0/oauth/access_token"),
10            client_id,
11            client_secret,
12            redirect_url,
13        )
14    }
15}