Skip to content

Passing reactive object as additional argument to several golem modules #730

@agronomofiorentini

Description

@agronomofiorentini

Hi ThinkR,
Thank you for the development of this amazing package which I always use when I am faced with the development of a very large web application.
I would like to pass to several golem module an additional argument which is the reactive object of check_credentials of shiny manager to:

  1. To call only the user data.
  2. To activate or deactivate based on the type of user

This is the way that i am operating right now, but finding many problems.

UI part

app_ui<-shinymanager::secure_app(app_ui, status="primary")

Server Part

res_auth <- secure_server(check_credentials = check_credentials(credentials)) auth_output<- reactive({ reactiveValuesToList(res_auth)})

Module Server
mod_golem_User("golem_ui_1", res_auth)

Then when i am calling the res_auth() in the golem module it is as if it did not exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions