Last active
June 10, 2021 20:59
-
-
Save lucassimon/e97305e8baa14bfe871d93f80bcd179b to your computer and use it in GitHub Desktop.
KratosServices
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 KratosServices | |
def initialize(client) | |
# instance of the follow clients | |
# - FerreriKratosSdk::Clients::ClientRest | |
# - FerreriKratosSdk::Clients::ClientOry | |
@client = client | |
end | |
def login(body) | |
@client.login(body) | |
end | |
def register(body) | |
# TODO: Raise exceptions | |
begin | |
@client.register(body) | |
rescue StandardError => e | |
raise e | |
end | |
end | |
def verification() | |
@client.verification() | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment