PHP 8.2.30
Preview: default-auth-provider.js Size: 497 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/adminjs/lib/backend/utils/auth/default-auth-provider.js

import { BaseAuthProvider } from './base-auth-provider.js';

// eslint-disable-next-line @typescript-eslint/no-empty-interface

export class DefaultAuthProvider extends BaseAuthProvider {
  constructor({
    authenticate
  }) {
    super();
    this.authenticate = authenticate;
  }
  async handleLogin(opts, context) {
    const {
      data = {}
    } = opts;
    const {
      email,
      password
    } = data;
    return this.authenticate({
      email,
      password
    }, context);
  }
}

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
2.91 KB lrw-r--r-- 2026-02-28 00:31:14
Edit Download
497 B lrw-r--r-- 2026-02-28 00:31:26
Edit Download
84 B lrw-r--r-- 2026-02-28 00:31:42
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).