auth: the register entry takes https only, http only for a local host (Heimdall)
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m44s
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m44s
registrationEntry accepts an https url, or http when the host is localhost, *.localhost, 127.0.0.1 or ::1. A test pins both sides, including a look-alike host. The two tests that pass config.json as a ClientConfig now cast it, so tsc is clean for them. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
450a7e91ff
commit
764ee441bd
3 changed files with 23 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { describe, expect, it } from 'vitest';
|
||||
import { clientDefaultServer } from './useClientConfig';
|
||||
import { ClientConfig, clientDefaultServer } from './useClientConfig';
|
||||
import config from '../../../config.json';
|
||||
|
||||
describe('default homeserver', () => {
|
||||
|
|
@ -15,6 +15,6 @@ describe('default homeserver', () => {
|
|||
});
|
||||
|
||||
it('is gamecult.org in the repo config.json too', () => {
|
||||
expect(clientDefaultServer(config)).toBe('gamecult.org');
|
||||
expect(clientDefaultServer(config as ClientConfig)).toBe('gamecult.org');
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue