Skip to content

Commit

Permalink
Update core/src/main/scala/com/microsoft/azure/synapse/ml/logging/Usa…
Browse files Browse the repository at this point in the history
…ge/TokenUtils.scala

Co-authored-by: Mark Hamilton <[email protected]>
  • Loading branch information
saileshbaidya and mhamilton723 authored Sep 23, 2023
1 parent b7a78c5 commit 400dbe8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ object TokenUtils {

private def refreshAccessToken(): Unit = {
if (SparkContext.getOrCreate() != null) {
val token = getAccessToken("pbi")
AADToken = Some(token)
AADToken = Some(getAccessToken("pbi"))
} else {
AADToken = Some(new FabricTokenServiceClient().getAccessToken("pbi"))
}
Expand Down

0 comments on commit 400dbe8

Please sign in to comment.