diff --git a/Chronos/Services/OTPService.swift b/Chronos/Services/OTPService.swift index 3a89a1e..3365d53 100644 --- a/Chronos/Services/OTPService.swift +++ b/Chronos/Services/OTPService.swift @@ -50,10 +50,17 @@ public class OTPService { throw OTPError.invalidURL } + var path = components.path + let tokenType = try getTokenType(from: host) var token = Token() token.type = tokenType + if !path.isEmpty { + path.remove(at: path.startIndex) + token.account = path + } + try updateToken(&token, with: components.queryItems) return token