Skip to content

Commit

Permalink
Set Token as password if the token is not expired
Browse files Browse the repository at this point in the history
Signed-off-by: clyang82 <[email protected]>
  • Loading branch information
clyang82 committed Dec 17, 2024
1 parent 4824514 commit 049b48e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/db/db_session/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ func setPassword(dbConfig *config.DatabaseConfig) func(ctx context.Context, conn
}
connConfig.Password = token.Token
dbConfig.Token = token
} else {
connConfig.Password = dbConfig.Token.Token
}
}
return nil
Expand Down

0 comments on commit 049b48e

Please sign in to comment.