From 4e2c625919f2416e56be476ded0a3eba83784481 Mon Sep 17 00:00:00 2001 From: Ken Date: Tue, 20 Oct 2020 10:21:50 -0400 Subject: [PATCH] fix: update to showConnect function --- src/pages/authentication/connect.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/authentication/connect.md b/src/pages/authentication/connect.md index 73dcfd00..aec9cda8 100644 --- a/src/pages/authentication/connect.md +++ b/src/pages/authentication/connect.md @@ -111,15 +111,15 @@ To send the user straight to sign in, call `doOpenAuth(true)`. ### In ES6 (non-React) apps -If you aren't using React, or just want a simpler API, then you can use the `showStacksConnect` method. +If you aren't using React, or just want a simpler API, then you can use the `showConnect` method. ```jsx -import { showStacksConnect } from '@stacks/connect'; +import { showConnect } from '@stacks/connect'; const authOptions = { /** See docs above for options */ }; -showStacksConnect(authOptions); +showConnect(authOptions); ``` #### Sign In @@ -148,7 +148,7 @@ Then, you can use API methods under the `stacksConnect` global variable: const authOptions = { /** See docs above for options */ }; -stacksConnect.showStacksConnect(authOptions); +stacksConnect.showConnect(authOptions); ``` ## Handling redirect fallbacks