omniauth-threads 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5596649f40b3b480192fe2b6279ef38fd511dce287a063d51a7e4f106bd3e89
4
- data.tar.gz: f30e5559b65c7529beae026f3c3c6350e3945792a1b31320ad2574faafa24b89
3
+ metadata.gz: 462d0af2640373c6752ff05c95b78b8b4e8063548ed10abbd23fd4dc250bcbeb
4
+ data.tar.gz: 7165333b2c43ea1639c452c0232c71a1651af2ab26adb1802c6b4cd4b37522bc
5
5
  SHA512:
6
- metadata.gz: d2ad53d4c24ce25dccdafec4edbefc03631971d47476538a0eed370f22bc5a709296a70e232166ea73139125edb66692211d5bb1fc420df9eba695868e1bfcb1
7
- data.tar.gz: 03d46d203409351d8c04a881209495a27e1678eebba1ef35913581631093611c1647af05e412cb1044456acc22c4f722e137fdc0938cb02e58df7901b439685b
6
+ metadata.gz: 94a202f2c589888115e54141a40a79220008555f43f6dec52bd18ec60e56fba289f69f6cb156da322c690c29e7ac2fd7c81424a33d45f8f8864616ceb2e92254
7
+ data.tar.gz: f7788e471b0adb66d2f844b8c49f7d431e884c98b07b7e9c3e43a17e5e72c65b48f8c8ac187f4f682c78e271e31050824811894fd85b31183e63ea9219b83e19
@@ -28,7 +28,13 @@ module OmniAuth
28
28
  uid { raw_info['id'] }
29
29
 
30
30
  info do
31
- {}
31
+ {
32
+ :nickname => raw_info['username'],
33
+ :name => raw_info['username'],
34
+ :email => raw_info["email"],
35
+ :image => raw_info['threads_profile_picture_url'],
36
+ :description => raw_info['threads_biography'],
37
+ }
32
38
  end
33
39
 
34
40
  extra do
@@ -38,7 +44,7 @@ module OmniAuth
38
44
  end
39
45
 
40
46
  def raw_info
41
- @raw_info ||= access_token.get('/me').parsed
47
+ @raw_info ||= access_token.get('/me?fields=id,username,threads_profile_picture_url,threads_biography').parsed
42
48
  end
43
49
 
44
50
  end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Threads
3
- VERSION = '0.1.1'
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-threads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Bornsztein
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-23 00:00:00.000000000 Z
11
+ date: 2024-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2