wvlet.airframe.rx.html.widget.auth.GoogleAuth
Load the Google API https://github.com/google/google-api-javascript-client to use this component:
<script src="https://apis.google.com/js/platform.js"></script>
Usage:
val auth = new GoogleAuth(GoogleAuthConfig(clientId = "......"))
auth.init.transform {
case None =>
div("Loading ...")
case _ =>
auth.getCurrentUser.transform {
case Some(userProfile) => ...
case None => ...
}
}
Attributes Graph Reset zoom Hide graph Show graph
Supertypes trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Members list Concise view
Value members
Get the current Google Auth2 instance
Get the current Google Auth2 instance
Attributes
Initialize GoogleAPI Auth2 and return true if the user is already authenticated
Initialize GoogleAPI Auth2 and return true if the user is already authenticated
Attributes
Attributes uxMode "popup" or "redirect"
Attributes Inherited from: LoggingMethods
Attributes Inherited from: LoggingMethods
Attributes Inherited from: LoggingMethods
Attributes Inherited from: LoggingMethods
Attributes Inherited from: LoggingMethods
Attributes Inherited from: LoggingMethods
Attributes Inherited from: LoggingMethods
Attributes Inherited from: LoggingMethods
Attributes Inherited from: LoggingMethods
Attributes Inherited from: LoggingMethods
Attributes Inherited from: LoggingMethods