You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-31Lines changed: 28 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,8 @@ Inside your `AppDelegate.m`, setup the line sdk by passing the channel id obtain
61
61
1. Add `platform :ios, '10.0'` in `Podfile` line:1
62
62
2. Enable `use_frameworks!` in `Podfile` line:3
63
63
3. Comment the code related to flipper, flipper doesn't support `use_frameworks!` !
64
-
4. Add this code to your `AppDelegate.m`
64
+
4. Modify your info.plist like it says here [Configuring the Info.plist file](https://developers.line.biz/en/docs/ios-sdk/swift/setting-up-project/#configuring-the-info-plist-file)
|`login(args?: LoginArguments): Promise<LoginResult>`| Starts the login flow of Line's SDK (Opens the apps if it's installed and defaults to the browser otherwise). It accepts the same argumements as the LineSDK, in an object `{ key: value }`, defaults the same way as LineSDK too. |
127
-
|`getCurrentAccessToken(): Promise<AccessToken>`| Returns the current access token for the currently logged in user. |
128
-
|`getProfile(): Promise<UserProfile>`| Returns the profile of the currently logged in user. |
129
-
|`logout(): Promise<void>`| Logs out the currently logged in user. |
130
-
|`refreshToken(): Promise<AccessToken>`| Refreshes the access token and returns it. |
131
-
|`verifyAccessToken(): Promise<AccessTokenVerifyResult>`| Verifies the access token and returns it. |
132
-
|`getBotFriendshipStatus(): Promise<any>`| Gets bot friendship status if [configured](https://developers.line.biz/en/docs/ios-sdk/swift/link-a-bot/). |
|`login(args?: LoginArguments): Promise<LoginResult>`| Starts the login flow of Line's SDK (Opens the apps if it's installed and defaults to the browser otherwise). It accepts the same argumements as the LineSDK, in an object `{ key: value }`, defaults the same way as LineSDK too. |
128
+
|`getCurrentAccessToken(): Promise<AccessToken>`| Returns the current access token for the currently logged in user. |
129
+
|`getProfile(): Promise<UserProfile>`| Returns the profile of the currently logged in user. |
130
+
|`logout(): Promise<void>`| Logs out the currently logged in user. |
131
+
|`refreshToken(): Promise<AccessToken>`| Refreshes the access token and returns it. |
132
+
|`verifyAccessToken(): Promise<AccessTokenVerifyResult>`| Verifies the access token and returns it. |
133
+
|`getBotFriendshipStatus(): Promise<BotFriendshipStatus>`| Gets bot friendship status if [configured](https://developers.line.biz/en/docs/ios-sdk/swift/link-a-bot/). |
133
134
134
135
### Return values
135
136
@@ -139,43 +140,34 @@ The following objects are returned on the methods described above:
139
140
140
141
```typescript
141
142
{
142
-
/// The user ID of the current authorized user.
143
+
/// The user ID of the current authorized user.
143
144
userID: String
144
145
145
-
/// The email of the current authorized user.
146
-
email?:String
147
-
148
146
/// The display name of the current authorized user.
149
-
displayName: String
147
+
displayName: string
150
148
151
149
/// The profile image URL of the current authorized user. `null` if the user has not set a profile
152
150
/// image.
153
-
pictureURL?:URL
154
-
155
-
/// The large profile image URL of the current authorized user. `null` if the user has not set a profile
156
-
/// image.
157
-
pictureURLLarge?:URL
158
-
159
-
/// The small profile image URL of the current authorized user. `null` if the user has not set a profile
160
-
/// image.
161
-
pictureURLSmall?:URL
151
+
pictureURL?:string
162
152
163
153
/// The status message of the current authorized user. `null` if the user has not set a status message.
164
-
statusMessage?:String
154
+
statusMessage?:string
165
155
}
166
156
```
167
157
168
158
2. AccessToken:
169
159
170
160
```typescript
171
161
{
172
-
/// The value of the access token.
162
+
/// The value of the access token.
173
163
access_token: String
174
-
175
164
/// The expiration time of the access token. It is calculated using `createdAt` and the validity period
176
165
/// of the access token. This value might not be the actual expiration time because this value depends
177
166
/// on the system time of the device when `createdAt` is determined.
178
167
expires_in: String
168
+
/// The raw string value of the ID token bound to the access token. The value exists only if the access token
169
+
/// is obtained with the `.openID` permission.
170
+
id_token?:String
179
171
}
180
172
```
181
173
@@ -198,7 +190,7 @@ The following objects are returned on the methods described above:
198
190
199
191
```typescript
200
192
{
201
-
/// The access token obtained by the login process.
193
+
/// The access token obtained by the login process.
202
194
accessToken: AccessToken
203
195
/// The permissions bound to the `accessToken` object by the authorization process. Scope has them separated by spaces
204
196
scope: String
@@ -210,15 +202,20 @@ The following objects are returned on the methods described above:
210
202
/// `LoginManagerOption` object when the user logs in. For more information, see Linking a bot with your LINE
211
203
/// Login channel at https://developers.line.me/en/docs/line-login/web/link-a-bot/.
212
204
friendshipStatusChanged?:boolean
213
-
/// The raw string value of the ID token bound to the access token. The value exists only if the access token
214
-
/// is obtained with the `.openID` permission.
215
-
lineIdToken?:String
216
205
/// The `nonce` value when requesting ID Token during login process. Use this value as a parameter when you
217
206
/// verify the ID Token against the LINE server. This value is `null` if `.openID` permission is not requested.
0 commit comments