-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathuser.cr
More file actions
34 lines (31 loc) · 768 Bytes
/
user.cr
File metadata and controls
34 lines (31 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require "oauth"
require "oauth2"
class MultiAuth::User
def initialize(
@provider, @uid, @name, @raw_json, @access_token,
@email = nil,
@nickname = nil,
@first_name = nil,
@last_name = nil,
@location = nil,
@description = nil,
@image = nil,
@phone = nil,
@urls = nil,
)
end
getter provider : String
getter uid : String
getter name : String?
getter raw_json : String
getter access_token : OAuth::AccessToken | OAuth2::AccessToken
property email : String?
property nickname : String?
property first_name : String?
property last_name : String?
property location : String?
property description : String?
property image : String?
property phone : String?
property urls : Hash(String, String)?
end