mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-10 01:09:29 +00:00
11 lines
262 B
Swift
11 lines
262 B
Swift
import Foundation
|
|
|
|
extension Data {
|
|
func base64UrlEncodedString() -> String {
|
|
return base64EncodedString()
|
|
.replacingOccurrences(of: "+", with: "-")
|
|
.replacingOccurrences(of: "/", with: "_")
|
|
.replacingOccurrences(of: "=", with: "")
|
|
}
|
|
}
|