()
| 133 | } |
| 134 | |
| 135 | async status() { |
| 136 | const auth = |
| 137 | (await this.api |
| 138 | ?.user() |
| 139 | .then(user => !!user) |
| 140 | .catch(e => { |
| 141 | console.warn('Failed getting GitLab user', e); |
| 142 | return false; |
| 143 | })) || false; |
| 144 | |
| 145 | return { auth: { status: auth }, api: { status: true, statusPage: '' } }; |
| 146 | } |
| 147 | |
| 148 | authComponent() { |
| 149 | return AuthenticationPage; |