Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Include useparagon/connect javascript assets #3

Merged
merged 4 commits into from
Feb 16, 2024

Conversation

candanedo
Copy link
Owner

@candanedo candanedo commented Feb 15, 2024

Description

Include the javascript assets for the UseParagon SDK. This should be included and precompile for every Rails project that uses the gem.

How to test

  • Install the gem in a Rails project.
  • Setup the UseParagon initializer and configure private_key and project_id.
  • If the Rails project uses importmap then pin the assets.
# config/importmap.rb

pin "useparagon/connect"

That's it, now you can include useparagon/connect sdk in any stimulus controller like this:

import "useparagon/connect"

And you can now use it as described by UseParagon official SDK documentation.

await window.paragon.authenticate(paragonProjectId, paragonToken)

@candanedo candanedo force-pushed the feature/initializer_for_paragon_credentials branch from 058f540 to 36c1f19 Compare February 15, 2024 05:24
@candanedo candanedo force-pushed the feature/initializer_for_paragon_credentials branch from 1a3f4be to 5a7426c Compare February 16, 2024 21:17
@candanedo candanedo merged commit a22c02a into main Feb 16, 2024
2 checks passed
@candanedo candanedo deleted the feature/initializer_for_paragon_credentials branch February 19, 2024 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant