Skip to content

Commit

Permalink
AccessToken -> access_token
Browse files Browse the repository at this point in the history
  • Loading branch information
hensol committed Dec 16, 2024
1 parent 5226417 commit 82722d2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private fun genererAccessToken(
return oAuth2AccessTokenService
.getAccessToken(
clientProperties,
).accessToken ?: throw JwtTokenValidatorException("Kunne ikke hente accesstoken")
).access_token ?: throw JwtTokenValidatorException("Kunne ikke hente accesstoken")
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -652,11 +652,11 @@ fun <T> Tidslinje<T>.hentVerdier(): List<T?> = this.innhold.slåSammenLike().map
fun <T> Tidslinje<T>.tilTidslinjePerioderMedDato(): List<TidslinjePeriodeMedDato<T>> {
val (tidslinjePeriodeMedLocalDateListe, _) =
this.innhold.fold(Pair(emptyList<TidslinjePeriodeMedDato<T>>(), 0L)) {
(
tidslinjePeriodeMedLocalDateListe: List<TidslinjePeriodeMedDato<T>>,
tidFraStarttidspunktFom: Long,
),
tidslinjePeriode,
(
tidslinjePeriodeMedLocalDateListe: List<TidslinjePeriodeMedDato<T>>,
tidFraStarttidspunktFom: Long,
),
tidslinjePeriode,
->
val tidFraStarttidspunktTilNesteFom = tidFraStarttidspunktFom + tidslinjePeriode.lengde

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private fun genererAccessToken(
clientConfigurationProperties,
grantType,
)
return oAuth2AccessTokenService.getAccessToken(clientProperties).accessToken ?: throw JwtTokenMissingException()
return oAuth2AccessTokenService.getAccessToken(clientProperties).access_token ?: throw JwtTokenMissingException()
}

/**
Expand Down

0 comments on commit 82722d2

Please sign in to comment.