Last active
June 23, 2018 12:36
-
-
Save MartinP7r/f5917d8b5b051cfe8b8d6d0ca3216827 to your computer and use it in GitHub Desktop.
medium_post_002
This file contains 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
class SomeSignInService: SignInService { | |
init() { | |
// do whatever the provider needs to be set up | |
} | |
func signIn(_ completion: @escaping (String?) -> Void) { | |
// call the sign in service and receive a token | |
completion(token) | |
} | |
func signOut() { /* ... call the provider's sign out */ } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment