-
Notifications
You must be signed in to change notification settings - Fork 180
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
Conversation
|
||
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 } |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, let's merge
Description
Resolves # (issue)
How Has This Been Tested?
Due Dilligence