CallbackValidator

com.malliina.web.CallbackValidator
See theCallbackValidator companion object
trait CallbackValidator[F[_], U]

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait AuthFlow[F, U]
class DiscoveringAuthFlow[F, V]
class GoogleAuthFlow[F]
class StandardAuthFlow[F, V]
class EmailAuthFlow[F]
class CognitoAuthFlow[F]
class FacebookAuthFlow[F]
class GitHubAuthFlow[F]
Show all

Members list

Value members

Abstract methods

def validate(code: Code, redirectUrl: FullUrl, requestNonce: Option[String]): F[Either[AuthError, U]]

Returns either a successfully validated user object or an AuthError if validation fails.

Returns either a successfully validated user object or an AuthError if validation fails.

The returned Future fails with a ResponseException if any network request fails.

Value parameters

code

auth code

redirectUrl

redir url

Attributes

Returns

a user object or a failure

Concrete methods

def validateCallback(cb: Callback): F[Either[AuthError, U]]