Skip to content

19.4.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 11:49
· 8 commits to main since this release
e7775ae

Customer identity: Gleap.setUserJwt(token:), Gleap.setUserJwtProvider(provider:) and Gleap.setAuthTokens(tokens:) wrap the native SDK methods on Android and iOS and the JavaScript SDK on web. setUserJwt identifies the user with one HS256 JWT signed by your backend (the token is the whole identify, kept in memory only); setAuthTokens stores per-user tokens for API tools on the signed contact (a null value removes one). The provider runs in Dart: the native (or JavaScript) SDK asks for a token when the current one expired or expires within 5 minutes and keeps the rules (one call at a time, 10 second timeout, 30 second pause after a failure); a thrown error or null counts as a failure. Needs native SDKs with these methods (the next synchronized native release) and, on web, a JavaScript SDK with them.
Fix: identify / identifyContact dropped the userHash when userProperties was null; the hash is now sent with or without user properties (on Android too). New: Gleap.setSessionDuration(milliseconds:) shortens the signed session (the project's maximum applies); on web it goes to the JavaScript SDK's initialize option and Gleap.setSessionDuration.

Updated native iOS dependency to 19.4.0
Updated native Android dependency to 19.4.0