()
| 123 | } |
| 124 | |
| 125 | async status() { |
| 126 | const auth = |
| 127 | (await this.api |
| 128 | ?.user() |
| 129 | .then(user => !!user) |
| 130 | .catch(e => { |
| 131 | console.warn('Failed getting GitLab user', e); |
| 132 | return false; |
| 133 | })) || false; |
| 134 | |
| 135 | return { auth: { status: auth }, api: { status: true, statusPage: '' } }; |
| 136 | } |
| 137 | |
| 138 | authComponent() { |
| 139 | return AuthenticationPage; |