mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-06 09:49:04 +02:00
feat: return not found. on /setup if already completed
This commit is contained in:
@@ -123,6 +123,10 @@ export default class UserService extends APIService {
|
||||
return res.data as User;
|
||||
};
|
||||
|
||||
checkInitialUserSetupAvailable = async () => {
|
||||
await this.api.get('/signup/setup');
|
||||
};
|
||||
|
||||
listSignupTokens = async (options?: ListRequestOptions) => {
|
||||
const res = await this.api.get('/signup-tokens', { params: options });
|
||||
return res.data as Paginated<SignupToken>;
|
||||
|
||||
Reference in New Issue
Block a user