Skip to content

Releases: ForbesLindesay/authentication

@authentication/passwordless@1.4.0

Refactorings

  • Use shared package to get request URL (#16)

@authentication/oauth2@1.0.0

21 Jul 16:50
Compare
Choose a tag to compare

Refactorings

  • Use shared package to get request URL (#16)

Bug Fixes

  • No longer references ClientResponse from @types/node (#15)

    This type has been removed. @authentication/oauth2 just uses any as a workaround for the time being.

@authentication/oauth1@1.0.0

21 Jul 16:50
Compare
Choose a tag to compare

Breaking Changes

  • Add support for using the BASE_URL or BASE_URI environment variable to specify the app's hostname in production. (#16)

@authentication/secure-hash@1.1.0

18 Jul 14:56
Compare
Choose a tag to compare

New Features

  • Upgrade sodium-native (#12)

    This means there will be pre-built binaries for more modern platforms.

@authentication/cloudflare-ip@1.0.0

New Features

  • Initial Release (#14)

    JavaScript usage:

    const isCloudflareIp = require('@authentication/cloudflare-ip');
    
    // non-cloudflare ips should be false
    isCloudflareIp('66.249.66.1')                // false
    isCloudflareIp('1.1.1.1')                    // false
    
    // localhost should be false
    isCloudflareIp('127.0.0.1'))                 // false
    isCloudflareIp('::1'))                       // false
    
    // cloudflare ips should pass
    isCloudflareIp('103.21.244.0'))              // true
    isCloudflareIp('2400:cb00:0000::0000'))      // true

    TypeScript usage:

    import isCloudflareIp from '@authentication/cloudflare-ip';
    
    // non-cloudflare ips should be false
    isCloudflareIp('66.249.66.1')                // false
    isCloudflareIp('1.1.1.1')                    // false
    
    // localhost should be false
    isCloudflareIp('127.0.0.1'))                 // false
    isCloudflareIp('::1'))                       // false
    
    // cloudflare ips should pass
    isCloudflareIp('103.21.244.0'))              // true
    isCloudflareIp('2400:cb00:0000::0000'))      // true