Skip to content

Manually initialize ReCaptcha Module with dynamic siteKey? #71

Open
@nperegrine

Description

@nperegrine

Hi, thanks for this awesome library,

I have been using this package for a while with no issues.

Recently I developed a project where I need the ability to:
1.) Manually initialize ReCaptcha siteKey

Basically, I want to be able to change the ReCaptcha site key after running "npm run build" using a dynamic Google ReCaptcha siteKey based on/provided by the client own deployment of the app (ps: they cannot edit nuxt.config.js and rebuild project that's why I really need this solution).

A similar option is currently available with @nuxtjs/gtm

Where we can do the following:

nuxt.config.js

export default { modules: [ '@nuxtjs/gtm' ], plugins: [ '~/plugins/gtm' ] }

plugins/gtm.js:

export default function({ $gtm, route }) { $gtm.init('GTM-XXXXXXX') }

Could a similar option like this please be added to this module? Seems like it shouldn't be very complicated to add!!!

Please any guidance or assistance on how to achieve this with this module would be greatly appreciated.

Thanks so much in advance!

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