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
Example implementation in my code (splitToken is copied from this project)
val jwtBody =JWTPayload.splitToken(loginData.access_token ?:"")?.get(1)
if (jwtBody.isNullOrEmpty()) {
throwIllegalArgumentException()
}
val jwtAccessToken =Json{ ignoreUnknownKeys =true }.decodeFromString<JWTPayload>(
jwtBody.decodeBase64Bytes().decodeToString()
)
if (jwtAccessToken.sub.isEmpty()) {
throwIllegalArgumentException()
}
Regards,
Luca.
Describe the ideal solution
Replace base64 and parcelable function/object.
Alternatives and current workarounds
Implement native code functions/libs.
Additional context
No response
Reacted by Fernando Pitters, Charles Mutabazi, Stephen Farr, Luka Miskovic, Felipe Rotilho, miel3k, PhilTdr, Simon Schubert, Alexander Karkossa and Andrei Mukamolau
Activity