Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Relay] Authenticator Fix #1124

Merged
merged 2 commits into from
Oct 2, 2023
Merged

[Relay] Authenticator Fix #1124

merged 2 commits into from
Oct 2, 2023

Conversation

alexander-lsvk
Copy link
Contributor

Description

Resolves # (issue)

How Has This Been Tested?

Due Dilligence

  • Breaking change
  • Requires a documentation update

@alexander-lsvk alexander-lsvk temporarily deployed to internal September 20, 2023 07:32 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal September 20, 2023 07:40 — with GitHub Actions Inactive
@alexander-lsvk alexander-lsvk temporarily deployed to internal October 2, 2023 07:12 — with GitHub Actions Inactive

public init(clientIdStorage: ClientIdStoring, url: String) {
self.clientIdStorage = clientIdStorage
self.url = url
}

public func createAuthToken() throws -> String {
public func createAuthToken(url: String? = nil) throws -> String {
url.flatMap { self.url = $0 }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we're rewriting class instance?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it enough to just use and not change class state??
let audience = fallbackUrl ?? url

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flypaper0 it was like that before, but Bartek asked to change the url inside the object.
class is to make it mutable, I don't wanna have a mutable struct there

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, let's merge

@alexander-lsvk alexander-lsvk merged commit 2e1b67d into develop Oct 2, 2023
8 checks passed
@alexander-lsvk alexander-lsvk deleted the authenticator-fix branch October 2, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants