1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
Zhiyuan Zheng
2021-01-17 22:37:05 +01:00
parent 813f6b57c4
commit f977fdfa8b
44 changed files with 252 additions and 158 deletions

View File

@ -8,12 +8,14 @@ import { useDispatch } from 'react-redux'
export interface Props {
instanceDomain: string
// Domain can be different than uri
instanceUri: Mastodon.Instance['uri']
appData: InstanceLocal['appData']
goBack?: boolean
}
const InstanceAuth = React.memo(
({ instanceDomain, appData, goBack }: Props) => {
({ instanceDomain, instanceUri, appData, goBack }: Props) => {
let redirectUri: string
switch (Constants.manifest.releaseChannel) {
case 'production':
@ -70,6 +72,7 @@ const InstanceAuth = React.memo(
localAddInstance({
url: instanceDomain,
token: accessToken,
uri: instanceUri,
appData
})
)