Created
January 28, 2019 19:16
-
-
Save timbaev/ea7bea157375d2cdff073edc6412b3ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Generate new Refresh Token | |
class func createRefreshToken() -> String { | |
let letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" | |
return String((0 ... 40).map { _ in letters.randomElement()! }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment