Skip to content

Commit

Permalink
string
Browse files Browse the repository at this point in the history
  • Loading branch information
heyvard committed Jan 13, 2025
1 parent bed4fa0 commit 52ca182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/helse/flex/api/TestController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ class TestController(

@ResponseBody
@GetMapping(value = ["/token"], produces = [MediaType.TEXT_HTML_VALUE])
fun hentHtml(): Pair<String?, Int?> {
fun hentHtml(): String {
val accessToken =
oAuth2AccessTokenService.getAccessToken(
clientConfigurationProperties.registration.get("spinnsyn-frontend-arkivering-credentials")!!,
)

return Pair(accessToken.access_token, accessToken.expires_in)
return accessToken.access_token!!
}

@ResponseBody
Expand Down

0 comments on commit 52ca182

Please sign in to comment.