Hello All,
I am working on a simple test project where I load a login page using webview. This works file.
Currently I do the following:
1. Load a login page using webview
2. After successful login , the page displays the following text in the webview:
Question:
How can I extract the "refresh_token" and save it ?
I am working on a simple test project where I load a login page using webview. This works file.
Currently I do the following:
1. Load a login page using webview
2. After successful login , the page displays the following text in the webview:
B4X:
{"expires_in":300,"refresh_expires_in":15551999,"refresh_token":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJjYjY5MzYyYi03NDYwLTQ5NmUtOTNiMS0yZTVjNDk1MDcxY2IifQ.eyJleHAiOjE3NDUyMTgwMDIsImlhdCI6MTcyOTY2NjAwMywianRpIjoiMzA2OWJjMTktNzkxYS00ZmZhLWEzZTQtZDU5ZmIwZTZiZjc1IiwiaXNzIjoiaHR0cHM6Ly9pZHAyLWFwaWd3LXByZXByb2QuY2xvdWQuZ3JvaGUuY29tL3YxL3Nzby9hdXRoL3JlYWxtcy9pZG0tYXBpZ3ciLCJhdWQiOiJodHRwczovL2lkcDItYXBpZ3ctcHJlcHJvZC5jbG91ZC5ncm9oZS5jb20vdjEvc3NvL2F1dGgvcmVhbG1zL2lkbS1hcGlndyIsInN1YiI6ImVhNjk1Y2IyLTRkMTUtNGRhZC1hOTlhLTk1YTFkY2I0ZjcyNCIsInR5cCI6IlJlZnJlc2giLCJhenAiOiJpb3QiLCJzZXNzaW9uX3N0YXRlIjoiOTRhNDEzMzctZGM4NC00ZjhlLWE2YzktZjg5N2Q2M2RiZTE4Iiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSIsInNpZCI6Ijk0YTQxMzM3LWRjODQtNGY4ZS1hNmM5LWY4OTdkNjNkYmUxOCJ9.j42m5A51NQauY_Z5ju9HbUtrbQa5E7kD2KGFGnzVdwo","token_type":"Bearer","id_token":"eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJUb1FBeE5QRFpMM1cxMVJkcGY3d1l2NjJfTUJrbmxKYlZrYTJxRm84RmR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ia5ZXG-RQNZrfGYaLumo1jNX3mG5uEfeh3ET4A2Nx9rBSts-_DGF89fOBOYBYvLEJWc7YkHyd5FPiJ9kJiKHx066jH079qZpgfx6w","not-before-policy":0,"session_state":"94a41337-dc84-4f8e-a6c9-f897d63dbe18","scope":"openid profile","tandc_accepted":true,"partialLogin":false}
Question:
How can I extract the "refresh_token" and save it ?