add validate token on component did mount

This commit is contained in:
2020-07-18 11:50:25 +07:00
parent bafdfcc21b
commit 978a1cea6a
7 changed files with 108 additions and 11974 deletions

View File

@@ -6,7 +6,7 @@ const App = () => {
return <FormLogin/>
}
const authUrl = 'http://localhost:8080/authenticate'
const authUrl = 'http://dummyspringtoken-env-1.eba-hfxxdsvk.us-east-2.elasticbeanstalk.com/authenticate'
export default wrapAuthContext(App, {
authUrl

View File

@@ -42,7 +42,11 @@ const FormLogin = () => {
/>
<button type={'submit'}>Submit</button>
</form>
<br/>
<br />
<pre>
{JSON.stringify(auth)}
</pre>
</>
)
}

View File

@@ -2400,10 +2400,6 @@ balanced-match@^1.0.0:
resolved "https://npm-registry.cubetiqs.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767"
integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c=
"base-context-provider@link:../../base-context-provider":
version "0.0.0"
uid ""
base64-js@^1.0.2:
version "1.3.1"
resolved "https://npm-registry.cubetiqs.com/base64-js/-/base64-js-1.3.1.tgz#58ece8cb75dd07e71ed08c736abc5fac4dbf8df1"