Skip to content
Snippets Groups Projects
Commit f4dd596d authored by Taras's avatar Taras
Browse files

Make Credentials session id public

parent a721e806
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,6 @@ data class Credentials(
@Json(name = "well_known") val discoveryInformation: DiscoveryInformation? = null
)
internal fun Credentials.sessionId(): String {
fun Credentials.sessionId(): String {
return (if (deviceId.isNullOrBlank()) userId else "$userId|$deviceId").md5()
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment