Skip to content

Instantly share code, notes, and snippets.

@MartinP7r
Last active June 23, 2018 12:36
Show Gist options
  • Save MartinP7r/f5917d8b5b051cfe8b8d6d0ca3216827 to your computer and use it in GitHub Desktop.
Save MartinP7r/f5917d8b5b051cfe8b8d6d0ca3216827 to your computer and use it in GitHub Desktop.
medium_post_002
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