Skip to content

Commit

Permalink
Fix options typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jiachengzz committed Jul 25, 2022
1 parent d2b5d25 commit a6e1dcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/providers/Facebook.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/providers/GitHub.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

2 comments on commit a6e1dcc

@jiachengzhang1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: "Tag with name v0.1.1 already exists and points to a different commit"

Please sign in to comment.