rustauth-core 0.2.0

Core types and primitives for RustAuth.
Documentation
1
2
3
4
5
6
7
8
9
10
11
#![cfg(all(feature = "oauth", feature = "social-providers"))]

use rustauth_core::{oauth, social_providers};

#[test]
fn core_reexports_oauth_and_social_provider_packages() {
    let provider = oauth::oauth2::OAuthProviderMetadata::new("example", "Example");

    assert_eq!(provider.id(), "example");
    assert!(social_providers::PROVIDER_IDS.contains(&"github"));
}