Skip to content

shinylive-auth 2024.7.18

Compare
Choose a tag to compare
@darrida darrida released this 28 Jul 15:55
· 20 commits to main since this release

CHANGED

  • Pulled Logout button into the actual library (instead of having to define it manually in your app. It's now added where ever the module view is initialized:
import shinylive_auth as auth

page_ui = ui.page_sidebar(
    ui.sidebar(ui.div(id="app_sidebar_placeholder"),
    ui.output_ui("app_view_placeholder"),
    window_title=config.WINDOW_TITLE,
    title=[
        config.APP_TITLE,
        auth.view(auth.DEFAULT_AUTH_MODULE_ID),  # creates a logout button here
    ],
    id="page_placeholder",
)

app = App(page_ui, server)
  • incomplete example -- see tests for fully examples