lib/generators/roda/oauth/templates/db/migrate/create_rodauth_oauth.rb in rodauth-oauth-0.0.6 vs lib/generators/roda/oauth/templates/db/migrate/create_rodauth_oauth.rb in rodauth-oauth-0.1.0
- old
+ new
@@ -27,11 +27,12 @@
# for using access_types
t.string :access_type, null: false, default: "offline"
# uncomment to enable PKCE
# t.string :code_challenge
# t.string :code_challenge_method
-
+ # uncomment to use OIDC nonce
+ # t.string :nonce
t.index(%i[oauth_application_id code], unique: true)
end
create_table :oauth_tokens do |t|
t.integer :account_id
@@ -52,8 +53,10 @@
# t.string :refresh_token_hash, token: true
t.datetime :expires_in, null: false
t.datetime :revoked_at
t.string :scopes, null: false
t.datetime :created_at, null: false, default: -> { "CURRENT_TIMESTAMP" }
+ # uncomment to use OIDC nonce
+ # t.string :nonce
end
end
end
\ No newline at end of file