Skip to content

Commit c841f11

Browse files
authored
Merge pull request #70 from msaurabhee/fix_issue_69
Logging in detail
2 parents fb44fb6 + 1b21547 commit c841f11

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## v0.10.0 - 2021-09-23
11+
12+
* Allows errors from the provider to be thrown back to the user.
13+
1014
## v0.9.0 - 2021-09-23
1115

1216
* Require at least Ueberauth 0.7 due to changed builtin CSRF protection

lib/ueberauth/strategy/facebook.ex

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ defmodule Ueberauth.Strategy.Facebook do
6565
fetch_user(conn, client, config)
6666
end
6767
rescue
68-
OAuth2.Error ->
69-
set_errors!(conn, [error("invalid_code", "The code has been used or has expired")])
68+
e -> set_errors!(conn, [error("get_token_error", e)])
7069
end
7170
end
7271

mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule Ueberauth.Facebook.Mixfile do
22
use Mix.Project
33

44
@source_url "https://github.com/ueberauth/ueberauth_facebook"
5-
@version "0.9.0"
5+
@version "0.10.0"
66

77
def project do
88
[

0 commit comments

Comments
 (0)