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
@@ -85,13 +101,16 @@ Don't forget to add `application` function, as line's instructions indicate.
85
101
86
102
### Android Setup
87
103
88
-
1. Follow all the configuration steps in [Line's Android integration guide](https://developers.line.me/en/docs/line-login/android/integrate-line-login/)
104
+
1. Follow all the configuration steps in [Line's Android integration guide](https://developers.line.biz/en/docs/android-sdk/integrate-line-login/)
89
105
2. Add the string `line_channel_id` to your strings file with the the channel id that you have on your line console.
90
106
91
107
```xml
92
108
<stringname="line_channel_id"translatable="false">Your channel id here</string>
93
109
```
94
110
111
+
3. Add `minSdkVersion = 17` in `android/build.gradle`
112
+
4. In your manifest add `xmlns:tools="http://schemas.android.com/tools"` in your `manifest` tag and also `tools:replace="android:allowBackup"` in your `application` tag
113
+
95
114
## API
96
115
97
116
First, require the `LineLogin` module:
@@ -154,23 +173,6 @@ The following objects are returned on the methods described above:
154
173
/// of the access token. This value might not be the actual expiration time because this value depends
155
174
/// on the system time of the device when `createdAt` is determined.
156
175
expires_in: String
157
-
158
-
/// The creation time of the access token. It is the system time of the device that receives the current
159
-
/// access token.
160
-
createdAt: String
161
-
162
-
/// The raw string value of the ID token bound to the access token. The value exists only if the access token
163
-
/// is obtained with the `.openID` permission.
164
-
id_token?:String
165
-
166
-
/// The refresh token bound to the access token.
167
-
/// `refreshToken` is not publicly provided anymore. You should not access or store it yourself.
168
-
refresh_token: String
169
-
170
-
token_type: String
171
-
172
-
/// Permissions separated by spaces
173
-
scope: String
174
176
}
175
177
```
176
178
@@ -205,6 +207,9 @@ The following objects are returned on the methods described above:
205
207
/// `LoginManagerOption` object when the user logs in. For more information, see Linking a bot with your LINE
206
208
/// Login channel at https://developers.line.me/en/docs/line-login/web/link-a-bot/.
207
209
friendshipStatusChanged?:boolean
210
+
/// The raw string value of the ID token bound to the access token. The value exists only if the access token
211
+
/// is obtained with the `.openID` permission.
212
+
lineIdToken?:String
208
213
/// The `nonce` value when requesting ID Token during login process. Use this value as a parameter when you
209
214
/// verify the ID Token against the LINE server. This value is `null` if `.openID` permission is not requested.
210
215
IDTokenNonce?:String
@@ -229,7 +234,7 @@ The following objects are returned on the methods described above:
229
234
{
230
235
email='email',
231
236
/// The permission to get an ID token in the login response.
232
-
openID='openID',
237
+
openID='openid',
233
238
234
239
/// The permission to get the user's profile including the user ID, display name, and the profile image
235
240
/// URL in the login response.
@@ -312,6 +317,7 @@ If you want to see `@xmartlabs/react-native-line` in action, just move into the
0 commit comments