From a6e1dcc0c90e7a09ae649ee18f6e19845404f01a Mon Sep 17 00:00:00 2001 From: Jiacheng Zhang Date: Sun, 24 Jul 2022 21:17:42 -0700 Subject: [PATCH] Fix options typos --- src/providers/Facebook.jl | 4 ++-- src/providers/GitHub.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/providers/Facebook.jl b/src/providers/Facebook.jl index 0d62da7..f123250 100644 --- a/src/providers/Facebook.jl +++ b/src/providers/Facebook.jl @@ -12,7 +12,7 @@ const USER_URL = "https://graph.facebook.com/me" export FacebookOptions Base.@kwdef struct FacebookOptions <: Umbrella.Configuration.ProviderOptions - response_type::String = code # code, token, code%20token, granted_scopes + response_type::String = "code" # code, token, code%20token, granted_scopes end Base.@kwdef mutable struct Tokens @@ -37,7 +37,7 @@ StructTypes.StructType(::Type{User}) = StructTypes.Mutable() function redirect_url(config::Umbrella.Configuration.Options) if config.providerOptions === nothing - options = GitHubOptionsOptions() + options = FacebookOptions() else options = config.providerOptions end diff --git a/src/providers/GitHub.jl b/src/providers/GitHub.jl index 65358e8..33f36fa 100644 --- a/src/providers/GitHub.jl +++ b/src/providers/GitHub.jl @@ -137,7 +137,7 @@ StructTypes.StructType(::Type{User}) = StructTypes.Mutable() function redirect_url(config::Umbrella.Configuration.Options) if config.providerOptions === nothing - options = GitHubOptionsOptions() + options = GitHubOptions() else options = config.providerOptions end