If you don’t want the log-in/out button to be displayed to logged-in editors, there’s Scrivito.isEditorLoggedIn
to conditionally hide it. Note that the SDK doesn’t apply restrictions if an editor is logged in.
The component lets you access the user profile sent by Google after logging in. You could display some pieces of this data, e.g. the user’s name, in addition to the logout button.
If you would like to have the login/logout functionality available as a widget, put the GoogleAPI
component in your application file (App.js), and implement the widget around the buttons.