We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa2a49f + 0aeb058 commit dfa7285Copy full SHA for dfa7285
ios/LineLoginModule.swift
@@ -135,12 +135,17 @@ import LineSDK
135
}
136
137
private func parseAccessToken(_ token: AccessToken) -> NSDictionary {
138
- return [
+ var result = [
139
"accessToken": token.value,
140
"createdAt": token.createdAt,
141
"expiresIn": token.expiresAt,
142
- "idToken": try? JSONSerialization.data(withJSONObject: token.IDToken ?? [:], options: [])
143
- ]
+ ] as [String : Any]
+
144
+ if let idToken = token.IDTokenRaw {
145
+ result["idToken"] = idToken
146
+ }
147
148
+ return NSDictionary(dictionary: result)
149
150
151
private func parseFriendshipStatus(_ status: GetBotFriendshipStatusRequest.Response) -> NSDictionary {
0 commit comments