Skip to content

Commit

Permalink
Merge branch 'release/2.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 15, 2018
2 parents 16dfd3c + 4f75018 commit 4e3902f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,14 @@
<a name="2.1.2"></a>
## [2.1.2](https://github.com/adonisjs/adonis-ally/compare/v2.1.1...v2.1.2) (2018-10-15)


### Bug Fixes

* **package:** publish templates directory ([877d1fd](https://github.com/adonisjs/adonis-ally/commit/877d1fd))
* **twitter:** fetch id_str and https picture ([#60](https://github.com/adonisjs/adonis-ally/issues/60)) ([7e11c57](https://github.com/adonisjs/adonis-ally/commit/7e11c57))



<a name="2.1.1"></a>
## [2.1.1](https://github.com/adonisjs/adonis-ally/compare/v2.1.0...v2.1.1) (2018-10-02)

Expand Down
5 changes: 3 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "@adonisjs/ally",
"version": "2.1.1",
"version": "2.1.2",
"description": "Social authenticator for AdonisJs Framework",
"main": "index.js",
"files": [
Expand All @@ -9,7 +9,8 @@
"providers",
"src",
"instructions.js",
"instructions.md"
"instructions.md",
"templates"
],
"scripts": {
"mrm": "mrm --preset=@adonisjs/mrm-preset",
Expand Down
4 changes: 2 additions & 2 deletions src/Drivers/Twitter.js
Expand Up @@ -115,11 +115,11 @@ class Twitter extends OAuthScheme {
user
.setOriginal(userProfile)
.setFields(
userProfile.id,
userProfile.id_str,
userProfile.screen_name,
userProfile.email,
userProfile.name,
userProfile.profile_image_url.replace('_normal.jpg', '.jpg')
userProfile.profile_image_url_https.replace(/_normal(\.\w+)$/, '$1')
)
.setToken(accessTokenResponse.accessToken, null, accessTokenResponse.tokenSecret, null)

Expand Down

0 comments on commit 4e3902f

Please sign in to comment.