mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-28 10:00:40 +00:00
10 lines
255 B
Swift
10 lines
255 B
Swift
import Foundation
|
|
|
|
extension Data {
|
|
func base64UrlEncodedString() -> String {
|
|
base64EncodedString()
|
|
.replacingOccurrences(of: "+", with: "-")
|
|
.replacingOccurrences(of: "/", with: "_")
|
|
.replacingOccurrences(of: "=", with: "")
|
|
}
|
|
}
|