auth-context-provider/example/src/App.tsx

15 lines
321 B
TypeScript
Raw Normal View History

2020-07-15 08:29:58 +07:00
import React from 'react'
2020-07-15 13:37:51 +07:00
import {wrapAuthContext} from 'auth-context-provider'
2020-07-15 10:40:48 +07:00
import FormLogin from './FormLogin'
2020-07-15 08:29:58 +07:00
const App = () => {
2020-07-15 10:40:48 +07:00
return <FormLogin/>
2020-07-15 08:29:58 +07:00
}
const authUrl = 'http://dummyspringtoken-env-1.eba-hfxxdsvk.us-east-2.elasticbeanstalk.com/authenticate'
2020-07-15 10:40:48 +07:00
2020-07-15 13:37:51 +07:00
export default wrapAuthContext(App, {
authUrl
})
2020-07-15 10:40:48 +07:00