Skip to content
Snippets Groups Projects
Unverified Commit 46f291a2 authored by Thomas Klingbeil's avatar Thomas Klingbeil Committed by GitHub
Browse files

Reuse already present registration token (#145)

* use registration token passed to transaction

* remove unexpected space before :
parent 47a13b82
No related branches found
No related tags found
No related merge requests found
......@@ -47,10 +47,7 @@ object SubmissionService {
deleteTeleTAN()
}
suspend fun asyncRequestAuthCode(): String {
val registrationToken =
LocalData.registrationToken() ?: throw NoRegistrationTokenSetException()
suspend fun asyncRequestAuthCode(registrationToken: String): String {
val authCode = WebRequestBuilder.asyncGetTan(TAN_REQUEST_URL, registrationToken)
return authCode
}
......
......@@ -52,7 +52,7 @@ object SubmitDiagnosisKeysTransaction : Transaction() {
* RETRIEVE TAN
****************************************************/
val authCode = executeState(RETRIEVE_TAN) {
SubmissionService.asyncRequestAuthCode()
SubmissionService.asyncRequestAuthCode(registrationToken)
}
/****************************************************
* RETRIEVE TEMPORARY EXPOSURE KEY HISTORY
......
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